org.granite.messaging.amf.persistence
Class AMFPersistentCollectionSnapshot
java.lang.Object
org.granite.messaging.amf.persistence.AMFPersistentCollectionSnapshot
- All Implemented Interfaces:
- Externalizable, Serializable, PersistentCollectionSnapshot
public class AMFPersistentCollectionSnapshot
- extends Object
- implements PersistentCollectionSnapshot
- Author:
- Franck WOLFF
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
initialized
protected boolean initialized
detachedState
protected String detachedState
dirty
protected boolean dirty
elements
protected Object[] elements
AMFPersistentCollectionSnapshot
public AMFPersistentCollectionSnapshot(String detachedState)
AMFPersistentCollectionSnapshot
public AMFPersistentCollectionSnapshot(boolean sorted,
String detachedState)
AMFPersistentCollectionSnapshot
public AMFPersistentCollectionSnapshot(boolean initialized,
String detachedState,
boolean dirty,
Collection<?> collection)
AMFPersistentCollectionSnapshot
public AMFPersistentCollectionSnapshot(boolean initialized,
String detachedState,
boolean dirty,
Map<?,?> collection)
isInitialized
public boolean isInitialized()
- Specified by:
isInitialized in interface PersistentCollectionSnapshot
getDetachedState
public String getDetachedState()
- Specified by:
getDetachedState in interface PersistentCollectionSnapshot
isDirty
public boolean isDirty()
- Specified by:
isDirty in interface PersistentCollectionSnapshot
isSorted
public boolean isSorted()
- Specified by:
isSorted in interface PersistentCollectionSnapshot
newComparator
public <T> Comparator<T> newComparator(ObjectInput in)
- Specified by:
newComparator in interface PersistentCollectionSnapshot
getElementsAsCollection
public <T> Collection<T> getElementsAsCollection()
- Specified by:
getElementsAsCollection in interface PersistentCollectionSnapshot
getElementsAsMap
public <K,V> Map<K,V> getElementsAsMap()
- Specified by:
getElementsAsMap in interface PersistentCollectionSnapshot
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal in interface Externalizable
- Throws:
IOException
ClassNotFoundException
readInitializationData
public void readInitializationData(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readInitializationData in interface PersistentCollectionSnapshot
- Throws:
IOException
ClassNotFoundException
readCoreData
public void readCoreData(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readCoreData in interface PersistentCollectionSnapshot
- Throws:
IOException
ClassNotFoundException