- Type Parameters:
T
- the type of instance supplied
- All Implemented Interfaces:
Supplier<T>
- Enclosing interface:
- Instance
public static class Instance.NewInstance<T>
extends Object
implements Supplier<T>
A
Supplier
implementation that supplies new instances
of a class each time its
get()
method
is called.
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
NewInstance
protected NewInstance(Class<T> instanceClass)
-