How to name a static factory method in the utility class?
- by leventov
I have an interface MyLongNameInterface with a counterpart utility class MyLongNameInterfaces. What is the best name for a static factory method in the utility class, which creates an instance of MyLongNameInterface?
MyLongNameInterfaces.newInstance() -- a new instance of the utility class?
MyLongNameInterfaces.newMyLongNameInterface() -- too verbose
MyLongNameInterfaces.create() -- create an instance of the utility class? Also, create is not a widely used conventional verb in Java
better option?