Interface ContainerChange<C,E>
- All Known Subinterfaces:
CollectionChange<C,
,E> ListChange<E>
,MapChange<K,
,V> SetChange<E>
public interface ContainerChange<C,E>
- Since:
- 1.0.0
- See Also:
-
Method Summary
-
Method Details
-
getContainer
C getContainer()- Returns:
- the container that changed.
-
getType
ChangeType getType()- Returns:
- the
ChangeType
as one ofChangeType.ADD
,ChangeType.UPDATE
, orChangeType.REMOVE
.
-
getElement
- Parameters:
index
- the index of the changedelement
in the range from0
tocount - 1
.- Returns:
- the element at the given
index
. In case ofChangeType.REMOVE
the removed element, in case ofChangeType.ADD
the inserted element, and in case ofChangeType.UPDATE
the updated element.
-
getCount
int getCount()- Returns:
- the number of elements that have changed.
-