Package com.irurueta.hermes
Class UpdatedCollectionItemChange<T>
java.lang.Object
com.irurueta.hermes.CollectionItemChange
com.irurueta.hermes.UpdatedCollectionItemChange<T>
- Type Parameters:
T
- type of items in the collection.
Class to represent a change in a collection item that has been updated.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the item that after being updated.Returns the item that before being updated.Methods inherited from class com.irurueta.hermes.CollectionItemChange
getAction
-
Field Details
-
oldItem
Item before being updated. -
newItem
Item after being updated.
-
-
Constructor Details
-
UpdatedCollectionItemChange
Constructor.- Parameters:
oldItem
- item that before being updated.newItem
- item after being updated.- Throws:
IllegalArgumentException
- if either the old or new item is null.
-
-
Method Details
-
getOldItem
Returns the item that before being updated.- Returns:
- the item that before being updated.
-
getNewItem
Returns the item that after being updated.- Returns:
- the item that after being updated.
-