public class Instances
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
Instances |
access(Accessor accessor) |
boolean |
areEqual() |
boolean |
areNull() |
boolean |
areSame() |
java.lang.Object |
getBase() |
<T> T |
getBase(java.lang.Class<T> type) |
java.lang.Object |
getFresh() |
<T> T |
getFresh(java.lang.Class<T> type) |
Accessor |
getSourceAccessor() |
java.lang.Class<?> |
getType() |
java.lang.Object |
getWorking() |
<T> T |
getWorking(java.lang.Class<T> type) |
boolean |
hasBeenAdded() |
boolean |
hasBeenRemoved() |
boolean |
isPrimitiveNumericType() |
boolean |
isPrimitiveType() |
boolean |
isPrimitiveWrapperType() |
static <T> Instances |
of(Accessor sourceAccessor,
T working,
T base) |
static <T> Instances |
of(Accessor sourceAccessor,
T working,
T base,
T fresh) |
static <T> Instances |
of(T working,
T base) |
public static <T> Instances of(T working, T base)
public Accessor getSourceAccessor()
Accessor
that has been used to get to these instances.public java.lang.Object getWorking()
public <T> T getWorking(java.lang.Class<T> type)
public java.lang.Object getBase()
public <T> T getBase(java.lang.Class<T> type)
public java.lang.Object getFresh()
public <T> T getFresh(java.lang.Class<T> type)
public boolean hasBeenAdded()
public boolean hasBeenRemoved()
public boolean isPrimitiveType()
public boolean isPrimitiveWrapperType()
public java.lang.Class<?> getType()
public boolean isPrimitiveNumericType()
public boolean areEqual()
public boolean areSame()
public boolean areNull()