public static class CollectionContainer.CollectionChangeEvent<T extends Entity>
extends java.util.EventObject
Constructor and Description |
---|
CollectionChangeEvent(CollectionContainer<T> container,
CollectionChangeType changeType,
java.util.Collection<? extends T> changes) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<? extends T> |
getChanges()
Returns changed items.
|
CollectionChangeType |
getChangeType()
Returns the type of change.
|
CollectionContainer<T> |
getSource()
Returns the container which sent the event.
|
java.lang.String |
toString() |
public CollectionChangeEvent(CollectionContainer<T> container, CollectionChangeType changeType, java.util.Collection<? extends T> changes)
public CollectionContainer<T> getSource()
getSource
in class java.util.EventObject
public CollectionChangeType getChangeType()
public java.util.Collection<? extends T> getChanges()
getChangeType()
is CollectionChangeType.REFRESH
, the method
returns empty collection.public java.lang.String toString()
toString
in class java.util.EventObject