|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.jqno.equalsverifier.util.Instantiator<T>
T
- Instantiator
instantiates objects of this class, or of an
anonymous subclass of this class.public class Instantiator<T>
Instantiates objects of a given class.
Method Summary | ||
---|---|---|
T |
instantiate()
Instantiates an object of type T. |
|
T |
instantiateAnonymousSubclass()
Instantiates an anonymous subclass of T. |
|
static
|
of(Class<T> type)
Factory method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> Instantiator<T> of(Class<T> type)
T
- The class on which Instantiator
operates.type
- The class on which Instantiator
operates. Should be
the same as T.
Instantiator
for type
.public T instantiate()
public T instantiateAnonymousSubclass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |