Class MetisListSetChange
java.lang.Object
io.github.tonywasher.joceanus.metis.list.MetisListSetChange
Metis VersionedListSet Event.
-
Constructor Summary
ConstructorsConstructorDescriptionMetisListSetChange(int pVersion) Constructor.MetisListSetChange(MetisListEvent pEventType) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionObtain the change iterator.Obtain the event type.<T extends MetisFieldVersionedItem>
MetisListChange<T> getListChange(MetisListKey pItemType) Obtain the change for the specified list.intObtain the version.booleanisEmpty()Is this an empty changeSet?(package private) voidregisterChangedList(MetisListChange<?> pChange) Register changed list.
-
Constructor Details
-
MetisListSetChange
MetisListSetChange(MetisListEvent pEventType) Constructor.- Parameters:
pEventType- the event type
-
MetisListSetChange
MetisListSetChange(int pVersion) Constructor.- Parameters:
pVersion- the version
-
-
Method Details
-
getEventType
Obtain the event type.- Returns:
- the event type
-
getVersion
public int getVersion()Obtain the version.- Returns:
- the version
-
isEmpty
public boolean isEmpty()Is this an empty changeSet?- Returns:
- true/false
-
getListChange
Obtain the change for the specified list.- Type Parameters:
T- the item type- Parameters:
pItemType- the item type- Returns:
- the change (or null)
-
registerChangedList
Register changed list.- Parameters:
pChange- the changes to the list
-
changeIterator
Obtain the change iterator.- Returns:
- the iterator
-