blackboard.base
Class SharableArrayList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by blackboard.base.SharableArrayList
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess
Direct Known Subclasses:
BbList

public class SharableArrayList
extends java.util.ArrayList

This class will eventually be a copy of array list to provide for ultra shallow cloning and copy-on-modify. It will be implemented like StringBuffer, with a shared flag that indicates whether or not another instance is sharing a reference to the same underlying data structure.

Since:
Bb 5.5
Version:
$Revision: #1 $ $Date: 2005/06/27 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SharableArrayList()
           
 
Method Summary
 java.lang.String debug()
          Prints ArrayList elements for debugging.
 SharableArrayList getSubList(ListFilter filter)
          Returns a sublist containing all elements meet the given filter's requirements.
 void trimList(ListFilter filter)
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

SharableArrayList

public SharableArrayList()
Method Detail

debug

public java.lang.String debug()
Prints ArrayList elements for debugging.


getSubList

public SharableArrayList getSubList(ListFilter filter)
Returns a sublist containing all elements meet the given filter's requirements. The sublist has the same ordering as the original list.


trimList

public void trimList(ListFilter filter)


Copyright © 2003 Blackboard, Inc. All Rights Reserved.