In Effective Java , Item 1, towards the end of the this section on Static Factory methods, Joshua Bloch describes common names for static factory methods. Two of these names, getType and newType, are a little confusing for me.
Quote [Bloch, p. 10]
getType - Like getInstance, but used when the factory method is in a different class. Type indicates the type of object returned by the factory method.
newType - Like newInstance, but used when the factory method is in a different class. Type indicates the type of object returned by the factory method.
What would be the use case for having static factory methods in a different class? Is there an example of this pattern in use within the Java API?