public class SingleDeltaContainerEvent<E> extends Event implements IContainerEvent<E>
container event
with a single element delta
.source
Constructor and Description |
---|
SingleDeltaContainerEvent(IContainer<E> container,
E element,
IContainerDelta.Kind kind) |
Modifier and Type | Method and Description |
---|---|
void |
accept(IContainerEventVisitor<E> visitor) |
IContainerDelta<E> |
getDelta() |
E |
getDeltaElement() |
IContainerDelta.Kind |
getDeltaKind() |
IContainerDelta<E>[] |
getDeltas() |
IContainer<E> |
getSource() |
boolean |
isEmpty() |
String |
toString() |
formatAdditionalParameters
public SingleDeltaContainerEvent(IContainer<E> container, E element, IContainerDelta.Kind kind)
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 accept(IContainerEventVisitor<E> visitor)
accept
in interface IContainerEvent<E>
Copyright (c) 2011-2015 Eike Stepper (Berlin, Germany) and others.