public class ContainerEvent<E> extends Event implements IContainerEvent<E>
container event
implementation.source
Constructor and Description |
---|
ContainerEvent(IContainer<E> container) |
ContainerEvent(IContainer<E> container,
List<IContainerDelta<E>> deltas) |
Modifier and Type | Method and Description |
---|---|
void |
accept(IContainerEventVisitor<E> visitor) |
void |
addDelta(E element,
IContainerDelta.Kind kind) |
void |
addDelta(IContainerDelta<E> delta) |
protected String |
formatAdditionalParameters() |
IContainerDelta<E> |
getDelta() |
E |
getDeltaElement() |
IContainerDelta.Kind |
getDeltaKind() |
IContainerDelta<E>[] |
getDeltas() |
IContainer<E> |
getSource() |
boolean |
isEmpty() |
public ContainerEvent(IContainer<E> container)
public ContainerEvent(IContainer<E> container, List<IContainerDelta<E>> deltas)
public IContainer<E> getSource()
public boolean isEmpty()
isEmpty
in interface IContainerEvent<E>
public IContainerDelta<E>[] getDeltas()
getDeltas
in interface IContainerEvent<E>
public IContainerDelta<E> getDelta() throws IllegalStateException
getDelta
in interface IContainerEvent<E>
IllegalStateException
public E getDeltaElement() throws IllegalStateException
getDeltaElement
in interface IContainerEvent<E>
IllegalStateException
public IContainerDelta.Kind getDeltaKind() throws IllegalStateException
getDeltaKind
in interface IContainerEvent<E>
IllegalStateException
public void addDelta(E element, IContainerDelta.Kind kind)
public void addDelta(IContainerDelta<E> delta)
public void accept(IContainerEventVisitor<E> visitor)
accept
in interface IContainerEvent<E>
protected String formatAdditionalParameters()
formatAdditionalParameters
in class Event
Copyright (c) 2011-2015 Eike Stepper (Berlin, Germany) and others.