T
- the object type this factory creates.@FunctionalInterface public interface Factory<T>
Modifier and Type | Method and Description |
---|---|
default Stream<T> |
instances()
Return a new stream of object instances, created by this factory.
|
T |
newInstance()
Create a new instance of type T.
|
T newInstance()
© 2007-2017 Franz Wilhelmstötter (2017-04-28 16:50)