Package org.eclipse.net4j.util.container
Class ContainerEvent<E>
java.lang.Object
java.util.EventObject
org.eclipse.net4j.util.event.Event
org.eclipse.net4j.util.container.ContainerEvent<E>
- All Implemented Interfaces:
Serializable
,IContainerEvent<E>
,IEvent
A default
container event
implementation.- Author:
- Eike Stepper
- See Also:
- No Extend
- This class is not intended to be subclassed by clients.
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionContainerEvent
(IContainer<E> container) ContainerEvent
(IContainer<E> container, List<IContainerDelta<E>> deltas) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(IContainerEventVisitor<E> visitor) void
addDelta
(E element, IContainerDelta.Kind kind) void
addDelta
(IContainerDelta<E> delta) protected String
getDelta()
IContainerDelta<E>[]
boolean
isEmpty()
Methods inherited from class org.eclipse.net4j.util.event.Event
formatEventName, toString
-
Constructor Details
-
ContainerEvent
-
ContainerEvent
-
-
Method Details
-
getSource
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceIContainerEvent<E>
-
getDeltas
- Specified by:
getDeltas
in interfaceIContainerEvent<E>
-
getDelta
- Specified by:
getDelta
in interfaceIContainerEvent<E>
- Throws:
IllegalStateException
-
getDeltaElement
- Specified by:
getDeltaElement
in interfaceIContainerEvent<E>
- Throws:
IllegalStateException
-
getDeltaKind
- Specified by:
getDeltaKind
in interfaceIContainerEvent<E>
- Throws:
IllegalStateException
-
addDelta
-
addDelta
-
accept
- Specified by:
accept
in interfaceIContainerEvent<E>
-
formatAdditionalParameters
- Overrides:
formatAdditionalParameters
in classEvent
-