Java: implementation of simple commands

Posted by HH on Stack Overflow See other posts from Stack Overflow or by HH
Published on 2010-05-04T20:55:29Z Indexed on 2010/05/04 20:58 UTC
Read the original article Hit count: 267

I have created a pkg for my regular simple commands. They are non-static, to be more extensible, but somewhat more time-consuming to use because of creating object to use one. My other classes use them.

$ ls  *.java
CpF.java      IsBinary.java      RmLn.java        Tools.java
F2S.java      IsRoot.java        SaveToDisk.java  WordCount.java
Filters.java  ModRelativePaths.java  SetWord.java     WordNumber.java
Find.java     powerTools.java        Sort.java

Which option would you choose to use them easier?

  1. to develop a small interface like 'powerTools.java' for the pkg.
  2. to create a class with static methods for them.
  3. to add a static method to each class
  4. to stop overusing 'creating too many files' and centralising some?
  5. sthing else?

© Stack Overflow or respective owner

Related posts about java

Related posts about interface