There is some object say, ABC
, which I get in different ways. I have added all these methods to get the object ABC
in a separate class. Now my question is how should I name this class? I have named it ABCHelper
which I know is not an appropriate name. I also don't want to name it util
, else I have to keep static methods which I want to avoid. Could you please suggest me any appropriate name for such class.
public class ABCHelper {
public List<ABC> getABC(Source1 source1, ParameterType1 parameter1) {
// There are more lines of code here.
// Showing only this much for simplicity.
return source1.getABC(source1, method1);
}
public List<ABC> getABC(Source1 source1, ParameterType2 parameter2) {
return source1.getABC(source1, method1);
}
public List<ABC> getABC(Source2 source1, ParameterType3 parameter3) {
return source1.getABC(source1, method1);
}
public List<ABC> getABC(Source2 source1, ParameterType4 parameter4) {
return source1.getABC(source1, method1);
}
}
method1
argument not supposed to beparameter1
...parameter4
? – Andreas 32 mins agosource1
in as a parameter to an instance method ofsource1
? – Andreas 31 mins ago