public class ContainerEvent<E> extends Event implements IContainerEvent<E>
container event implementation.| Constructor and Description |
|---|
ContainerEvent(IContainer<E> container) |
ContainerEvent(IContainer<E> container,
java.util.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 java.lang.String |
formatAdditionalParameters() |
IContainerDelta<E> |
getDelta() |
E |
getDeltaElement() |
IContainerDelta.Kind |
getDeltaKind() |
IContainerDelta<E>[] |
getDeltas() |
IContainer<E> |
getSource() |
boolean |
isEmpty() |
formatEventName, toStringpublic ContainerEvent(IContainer<E> container)
public ContainerEvent(IContainer<E> container, java.util.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 java.lang.IllegalStateException
getDelta in interface IContainerEvent<E>java.lang.IllegalStateExceptionpublic E getDeltaElement() throws java.lang.IllegalStateException
getDeltaElement in interface IContainerEvent<E>java.lang.IllegalStateExceptionpublic IContainerDelta.Kind getDeltaKind() throws java.lang.IllegalStateException
getDeltaKind in interface IContainerEvent<E>java.lang.IllegalStateExceptionpublic 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 java.lang.String formatAdditionalParameters()
formatAdditionalParameters in class EventCopyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html