org.siebengeisslein.collections
Class AbstractCollection<Value>

java.lang.Object
  extended by org.siebengeisslein.client.Persistent
      extended by org.siebengeisslein.collections.AbstractCollection<Value>
All Implemented Interfaces:
java.lang.Iterable<Value>, java.util.Collection<Value>, Instrumented
Direct Known Subclasses:
AbstractPersistentList, AbstractSet

public abstract class AbstractCollection<Value>
extends Persistent
implements java.util.Collection<Value>


Constructor Summary
AbstractCollection()
           
AbstractCollection(int version)
           
 
Method Summary
 boolean addAll(java.util.Collection<? extends Value> c)
           
 boolean containsAll(java.util.Collection<?> c)
           
protected  int getVersion()
           
protected  void incVersion()
           
 boolean isEmpty()
           
 boolean removeAll(java.util.Collection<?> c)
           
 boolean retainAll(java.util.Collection<?> c)
           
 Value[] toArray()
           
<T> T[]
toArray(T[] a)
           
 java.lang.String toString()
           
 
Methods inherited from class org.siebengeisslein.client.Persistent
abort, clearUserLocals, clone, commit, disposeTransient, getGroup, getRef, getTransientValue, hashCode, initTransient, isWriteTransaction, joinWriteTransaction, readLock, setGroup, setTransientValue, toPersistent, toRef, writeExternal, writeLock
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
add, clear, contains, equals, hashCode, iterator, remove, size
 

Constructor Detail

AbstractCollection

public AbstractCollection()

AbstractCollection

public AbstractCollection(int version)
Method Detail

incVersion

protected void incVersion()

getVersion

protected int getVersion()

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection<Value>

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface java.util.Collection<Value>

containsAll

public boolean containsAll(java.util.Collection<?> c)
Specified by:
containsAll in interface java.util.Collection<Value>

addAll

public boolean addAll(java.util.Collection<? extends Value> c)
Specified by:
addAll in interface java.util.Collection<Value>

removeAll

public boolean removeAll(java.util.Collection<?> c)
Specified by:
removeAll in interface java.util.Collection<Value>

retainAll

public boolean retainAll(java.util.Collection<?> c)
Specified by:
retainAll in interface java.util.Collection<Value>

toArray

public Value[] toArray()
Specified by:
toArray in interface java.util.Collection<Value>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object