I have such design:
public interface MyInterface {
public abstract List<Sth> getSth();
}
public class MyConcreteImplementation implements MyInterface {
private ConcreteSth mSth = new ConcreteSth();
public List<Sth> getSth(){
return mSth.getSth(additionalParams);
}
}
Purpose of code above is to provide unified method to be called from other classes.
Can this be called a pattern? If so how to name it?
Adapter
That’s really sound like Adapter. You want to have a certain class adapted to your interface. The interface here is
MyInterfaceand the adaptee isConcreteSth.