public class SetContainer<E> extends Container<E> implements IContainer.Modifiable<E>, IContainer.Persistable<E>
IContainerSet,
IContainerSortedSetIContainer.Modifiable<E>, IContainer.Persistable<E>, IContainer.Persistence<E>ILifecycle.DeferrableActivation| Constructor and Description |
|---|
SetContainer(java.lang.Class<E> componentType) |
SetContainer(java.lang.Class<E> componentType,
java.util.Set<E> set) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAllElements(java.util.Collection<E> elements) |
boolean |
addElement(E element) |
void |
clear() |
protected void |
containerModified()
Called outside synchronized(this).
|
protected void |
doActivate() |
protected void |
doDeactivate() |
protected void |
elementAdded(E element)
Called inside synchronized(this).
|
protected void |
elementRemoved(E element)
Called inside synchronized(this).
|
java.lang.Class<E> |
getComponentType() |
E[] |
getElements() |
IContainer.Persistence<E> |
getPersistence() |
protected java.util.Set<E> |
getSet() |
boolean |
isEmpty() |
boolean |
isSavedWhenModified() |
void |
load() |
boolean |
removeAllElements(java.util.Collection<E> elements) |
boolean |
removeElement(E element) |
void |
save() |
void |
setPersistence(IContainer.Persistence<E> persistence) |
protected E[] |
sortElements(E[] array)
Called outside synchronized(this).
|
protected boolean |
validateElement(E element)
Called outside synchronized(this).
|
fireContainerEvent, fireContainerEvent, fireContainerEvent, fireElementAddedEvent, fireElementRemovedEvent, fireElementsAddedEvent, fireElementsRemovedEvent, fireEvent, newContainerEvent, newContainerEventactivate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toStringaddListener, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, getListeners, hasListeners, removeListenerpublic SetContainer(java.lang.Class<E> componentType)
public final java.lang.Class<E> getComponentType()
public final IContainer.Persistence<E> getPersistence()
getPersistence in interface IContainer.Persistable<E>public final void setPersistence(IContainer.Persistence<E> persistence)
setPersistence in interface IContainer.Persistable<E>public boolean isSavedWhenModified()
public boolean isEmpty()
public E[] getElements()
getElements in interface IContainer<E>public boolean addElement(E element)
addElement in interface IContainer.Modifiable<E>public boolean addAllElements(java.util.Collection<E> elements)
addAllElements in interface IContainer.Modifiable<E>public boolean removeElement(E element)
removeElement in interface IContainer.Modifiable<E>public boolean removeAllElements(java.util.Collection<E> elements)
removeAllElements in interface IContainer.Modifiable<E>public void clear()
public void load()
throws IORuntimeException
load in interface IContainer.Persistable<E>IORuntimeExceptionpublic void save()
throws IORuntimeException
save in interface IContainer.Persistable<E>IORuntimeExceptionprotected void doActivate()
throws java.lang.Exception
doActivate in class Lifecyclejava.lang.Exceptionprotected void doDeactivate()
throws java.lang.Exception
doDeactivate in class Lifecyclejava.lang.Exceptionprotected java.util.Set<E> getSet()
protected boolean validateElement(E element)
protected void containerModified()
protected void elementAdded(E element)
protected void elementRemoved(E element)
Copyright (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