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:
ObservableEvent.getChange()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CgetContainer()intgetCount()EgetElement(int index)ChangeTypegetType()
-
-
-
Method Detail
-
getContainer
C getContainer()
- Returns:
- the container that changed.
-
getType
ChangeType getType()
- Returns:
- the
ChangeTypeas one ofChangeType.ADD,ChangeType.UPDATE, orChangeType.REMOVE.
-
getElement
E getElement(int index)
- Parameters:
index- the index of the changedelementin the range from0tocount - 1.- Returns:
- the element at the given
index. In case ofChangeType.REMOVEthe removed element, in case ofChangeType.ADDthe inserted element, and in case ofChangeType.UPDATEthe updated element.
-
getCount
int getCount()
- Returns:
- the number of elements that have changed.
-
-