public final class Change<E extends Enum & ChangeType,T> extends Object implements AutoCloseable
Class which represents a logical change to a resource. It has an associated type
as well as the data that changed.
ChangeList,
ChangeType| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this change
|
boolean |
equals(Object theObj) |
T |
getChange()
Return the change data
|
E |
getChangeType()
Return the type of change
|
int |
hashCode() |
<C extends Enum & ChangeType> |
is(C theType)
Return whether or not the type of this Change is of the specified type.
|
static <E extends Enum & ChangeType,T> |
of(E theType,
T theChange)
Create a new Change
|
String |
toString() |
public void close()
throws Exception
close in interface AutoCloseableExceptionpublic E getChangeType()
public <C extends Enum & ChangeType> boolean is(C theType)
aChange.getType() == SomeChangeType.ATypeC - the type of change to testtheType - the change typepublic T getChange()
public static <E extends Enum & ChangeType,T> Change<E,T> of(E theType, T theChange)
T - the change data typeE - the change typetheType - the type of the changetheChange - the change dataCopyright © 2010-2016 Stardog Union. All Rights Reserved.