Class CollectionItemChange

java.lang.Object
com.irurueta.hermes.CollectionItemChange
Direct Known Subclasses:
InsertedCollectionItemChange, RemovedCollectionItemChange, UpdatedCollectionItemChange

public class CollectionItemChange extends Object
Contains information about found changes in a collection item.
  • Field Details

    • action

      private final CollectionItemChangeAction action
      Action that has been performed on the item, such as being added, removed, changed or moved within a collection.
  • Constructor Details

    • CollectionItemChange

      public CollectionItemChange(CollectionItemChangeAction listItemChangeAction)
      Constructor.
      Parameters:
      listItemChangeAction - action that has been performed on the item, such as being added, removed, changed or moved within a list.
      Throws:
      IllegalArgumentException - if provided action is null.
  • Method Details

    • getAction

      public CollectionItemChangeAction getAction()
      Gets the action that has been performed on the item, such as being added, removed, changed or moved within a collection.
      Returns:
      the action that has been performed on the item.