endrov.util.collection
Class PersistentGrowingCollection<E>

java.lang.Object
  extended by endrov.util.collection.PersistentGrowingCollection<E>

public class PersistentGrowingCollection<E>
extends java.lang.Object

Persistent growing collection of objects. Unlike a linked list, the elements are not ordered. This makes is very cheap to implement O(1) addition of other collections. Elements can exist multiple times.


Constructor Summary
PersistentGrowingCollection(E a)
           
PersistentGrowingCollection(E a, PersistentGrowingCollection<E> b)
           
PersistentGrowingCollection(PersistentGrowingCollection<E> a, PersistentGrowingCollection<E> b)
           
 
Method Summary
static
<E> java.util.Iterator<E>
iterator(PersistentGrowingCollection<E> This)
           
static
<E> int
size(PersistentGrowingCollection<E> c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentGrowingCollection

public PersistentGrowingCollection(E a)

PersistentGrowingCollection

public PersistentGrowingCollection(E a,
                                   PersistentGrowingCollection<E> b)

PersistentGrowingCollection

public PersistentGrowingCollection(PersistentGrowingCollection<E> a,
                                   PersistentGrowingCollection<E> b)
Method Detail

size

public static <E> int size(PersistentGrowingCollection<E> c)

iterator

public static <E> java.util.Iterator<E> iterator(PersistentGrowingCollection<E> This)