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-2020 Franz Wilhelmstötter (2020-02-18 20:01)