java.lang.Object
io.github.tonywasher.joceanus.metis.list.MetisListSetChange

public class MetisListSetChange extends Object
Metis VersionedListSet Event.
  • Constructor Details

    • MetisListSetChange

      MetisListSetChange(MetisListEvent pEventType)
      Constructor.
      Parameters:
      pEventType - the event type
    • MetisListSetChange

      MetisListSetChange(int pVersion)
      Constructor.
      Parameters:
      pVersion - the version
  • Method Details

    • getEventType

      public MetisListEvent 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

      public <T extends MetisFieldVersionedItem> MetisListChange<T> getListChange(MetisListKey pItemType)
      Obtain the change for the specified list.
      Type Parameters:
      T - the item type
      Parameters:
      pItemType - the item type
      Returns:
      the change (or null)
    • registerChangedList

      void registerChangedList(MetisListChange<?> pChange)
      Register changed list.
      Parameters:
      pChange - the changes to the list
    • changeIterator

      public Iterator<MetisListChange<?>> changeIterator()
      Obtain the change iterator.
      Returns:
      the iterator