org.granite.client.persistence.collection
Class PersistentSet<E>

java.lang.Object
  extended by org.granite.client.persistence.collection.AbstractPersistentCollection<C>
      extended by org.granite.client.persistence.collection.AbstractPersistentSimpleCollection<E,Set<E>>
          extended by org.granite.client.persistence.collection.PersistentSet<E>
All Implemented Interfaces:
Externalizable, Serializable, Iterable<E>, Collection<E>, Set<E>, PersistentCollection

public class PersistentSet<E>
extends AbstractPersistentSimpleCollection<E,Set<E>>
implements Set<E>

Author:
Franck WOLFF
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.granite.client.persistence.collection.PersistentCollection
PersistentCollection.ChangeListener, PersistentCollection.InitializationCallback, PersistentCollection.InitializationListener
 
Constructor Summary
PersistentSet()
           
PersistentSet(boolean initialized)
           
PersistentSet(Set<E> collection)
           
PersistentSet(Set<E> collection, boolean clone)
           
 
Method Summary
 PersistentSet<E> clone(boolean uninitialize)
           
 void doInitialize()
           
protected  void updateFromSnapshot(ObjectInput in, PersistentCollectionSnapshot snapshot)
           
 
Methods inherited from class org.granite.client.persistence.collection.AbstractPersistentSimpleCollection
add, addAll, clear, contains, containsAll, createSnapshot, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from class org.granite.client.persistence.collection.AbstractPersistentCollection
addListener, addListener, checkInitializedRead, checkInitializedWrite, clearDirty, dirty, getClassLoader, getCollection, getDetachedState, getLoader, init, initialize, initializing, isDirty, readExternal, removeListener, removeListener, setLoader, toString, uninitialize, wasInitialized, withInitialized, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

PersistentSet

public PersistentSet()

PersistentSet

public PersistentSet(boolean initialized)

PersistentSet

public PersistentSet(Set<E> collection)

PersistentSet

public PersistentSet(Set<E> collection,
                     boolean clone)
Method Detail

doInitialize

public void doInitialize()
Specified by:
doInitialize in class AbstractPersistentCollection<Set<E>>

updateFromSnapshot

protected void updateFromSnapshot(ObjectInput in,
                                  PersistentCollectionSnapshot snapshot)
Specified by:
updateFromSnapshot in class AbstractPersistentCollection<Set<E>>

clone

public PersistentSet<E> clone(boolean uninitialize)
Specified by:
clone in interface PersistentCollection
Overrides:
clone in class AbstractPersistentCollection<Set<E>>