wt.fc.collections
Class AbstractWTList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended bywt.fc.collections.AbstractWTCollection
          extended bywt.fc.collections.AbstractWTList
All Implemented Interfaces:
Collection, List, ReferenceBased, WTCollection, WTList
Direct Known Subclasses:
WTArrayList, WTArrayList.FilteredList, WTArrayList.OffSetList

public abstract class AbstractWTList
extends AbstractWTCollection
implements WTList

Base class for default WTList implementations. The add() and set() methods throw UnsupportedOperationExceptions.

Supported API: false

Extendable: false


Nested Class Summary
private  class AbstractWTList.ConnectCache
          Used to optimize the indexOf call required by connect.
 
Nested classes inherited from class wt.fc.collections.AbstractWTCollection
AbstractWTCollection.PersistableCollection
 
Field Summary
private static String CLASSNAME
           
private  AbstractWTList.ConnectCache connectCache
          Caches references to their indexes to speed up connect
private static String RESOURCE
           
 
Fields inherited from class wt.fc.collections.AbstractWTCollection
 
Fields inherited from interface wt.fc.collections.WTCollection
DEFLATED_ON_SERIALIZATION
 
Constructor Summary
AbstractWTList()
           
 
Method Summary
 void add(int index, Object o)
          

Supported API: false
 void add(int index, Persistable p)
          

Supported API: false
 void add(int index, QueryKey query_key)
          

Supported API: false
 void add(int index, WTReference ref)
          

Supported API: false
 boolean add(Persistable p)
          

Supported API: false
 boolean add(QueryKey query_key)
          

Supported API: false
 boolean add(WTReference ref)
          

Supported API: false
 boolean addAll(Collection c)
          

Supported API: false
 boolean addAll(int index, Collection c)
          

Supported API: false
 void connect(int index, Persistable p, WTCollection source)
          

Supported API: false
 void connect(int index, QueryKey query_key, WTCollection source)
          

Supported API: false
 void connect(int index, WTReference ref, WTCollection source)
          

Supported API: false
(package private)  boolean connect(WTReference r, boolean add)
          Use a cache to avoid excessive querying during the common case of building 1 collection by connecting objects from another
 boolean connectAll(int index, WTCollection c)
          

Supported API: false
 boolean equals(Object o)
           
 Object get(int index)
          

Supported API: false
(package private) abstract  int getModCount()
           
 Persistable getPersistable(int index)
          

Supported API: false
 QueryKey getQueryKey(int index)
          

Supported API: false
 WTReference getReference(int index)
          

Supported API: false
 int indexOf(Object o)
          

Supported API: false
 int indexOf(Persistable p)
          

Supported API: false
 int indexOf(QueryKey query_key)
          

Supported API: false
 int indexOf(WTReference ref)
          

Supported API: false
 int lastIndexOf(Object o)
          

Supported API: false
 int lastIndexOf(Persistable p)
          

Supported API: false
 int lastIndexOf(QueryKey query_key)
          

Supported API: false
 int lastIndexOf(WTReference ref)
          

Supported API: false
 ListIterator listIterator()
          

Supported API: false
 ListIterator listIterator(int index)
          

Supported API: false
 ListIterator persistableListIterator()
          

Supported API: false
abstract  ListIterator persistableListIterator(int index)
          

Supported API: false
 ListIterator queryKeyListIterator()
          

Supported API: false
abstract  ListIterator queryKeyListIterator(int index)
          

Supported API: false
 ListIterator referenceListIterator()
          

Supported API: false
abstract  ListIterator referenceListIterator(int index)
          

Supported API: false
 Object remove(int index)
          

Supported API: false
 Object set(int index, Object o)
          

Supported API: false
 Persistable set(int index, Persistable p)
          

Supported API: false
 QueryKey set(int index, QueryKey query_key)
          

Supported API: false
 WTReference set(int index, WTReference ref)
          

Supported API: false
abstract  List subList(int from_index, int to_index)
          

Supported API: false
 
Methods inherited from class wt.fc.collections.AbstractWTCollection
add, addAll, classIterator, connect, connect, connect, connect, connect, connect, connectAll, connectAll, contains, contains, contains, contains, containsInstance, containsNonPersisted, containsOnly, deflate, getIteratorListener, getKeyMask, getLastReturnedReference, getReference, getReference, getReference, getReferences, hashCode, inflate, isDeflatedOnSerialization, isEnabled, iterator, persistableCollection, persistableIterator, persistableIterator, queryKeyIterator, queryKeyIterator, referenceAdded, referenceIterator, referenceIterator, referenceRemoved, remove, remove, remove, remove, removeAll, removeNonPersisted, retainAll, setDeflatedOnSerialization, setLastReturnedReference, subCollection, subCollection, toArray, toArray, toArray, toArray, toArray, toArray, toIdArray
 
Methods inherited from class java.util.AbstractCollection
clear, containsAll, isEmpty, removeAll, retainAll, size, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface wt.fc.collections.WTList
connect, connect, connect
 
Methods inherited from interface wt.fc.collections.WTCollection
add, addAll, classIterator, connect, connect, connect, connectAll, connectAll, contains, contains, contains, contains, containsInstance, containsOnly, deflate, getKeyMask, inflate, isDeflatedOnSerialization, isEnabled, iterator, persistableCollection, persistableIterator, persistableIterator, queryKeyIterator, queryKeyIterator, referenceIterator, referenceIterator, remove, remove, remove, remove, removeAll, retainAll, setDeflatedOnSerialization, subCollection, subCollection, toArray, toArray, toArray, toArray, toArray, toArray, toIdArray
 
Methods inherited from interface java.util.Collection
clear, containsAll, hashCode, isEmpty, removeAll, retainAll, size
 
Methods inherited from interface java.util.List
add, clear, contains, containsAll, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

connectCache

private transient AbstractWTList.ConnectCache connectCache
Caches references to their indexes to speed up connect

Constructor Detail

AbstractWTList

public AbstractWTList()
Method Detail

add

public boolean add(Persistable p)


Supported API: false

Specified by:
add in interface WTCollection
Overrides:
add in class AbstractWTCollection
Parameters:
p -
Returns:
boolean

add

public boolean add(QueryKey query_key)


Supported API: false

Specified by:
add in interface WTCollection
Overrides:
add in class AbstractWTCollection
Parameters:
query_key -
Returns:
boolean

add

public boolean add(WTReference ref)


Supported API: false

Specified by:
add in interface WTCollection
Overrides:
add in class AbstractWTCollection
Parameters:
ref -
Returns:
boolean

add

public void add(int index,
                Object o)


Supported API: false

Specified by:
add in interface WTList
Parameters:
index -
o -

add

public void add(int index,
                Persistable p)


Supported API: false

Specified by:
add in interface WTList
Parameters:
index -
p -

add

public void add(int index,
                QueryKey query_key)


Supported API: false

Specified by:
add in interface WTList
Parameters:
index -
query_key -

add

public void add(int index,
                WTReference ref)


Supported API: false

Specified by:
add in interface WTList
Parameters:
index -
ref -

addAll

public boolean addAll(Collection c)


Supported API: false

Specified by:
addAll in interface WTCollection
Overrides:
addAll in class AbstractWTCollection
Parameters:
c -
Returns:
boolean

addAll

public boolean addAll(int index,
                      Collection c)


Supported API: false

Specified by:
addAll in interface WTList
Parameters:
index -
c -
Returns:
boolean

connect

public void connect(int index,
                    Persistable p,
                    WTCollection source)


Supported API: false

Specified by:
connect in interface WTList
Parameters:
index -
p -
source -
See Also:
WTCollection.connect(Persistable, WTCollection)

connect

public void connect(int index,
                    QueryKey query_key,
                    WTCollection source)


Supported API: false

Specified by:
connect in interface WTList
Parameters:
index -
query_key -
source -
See Also:
WTCollection.connect(Persistable, WTCollection)

connect

public void connect(int index,
                    WTReference ref,
                    WTCollection source)


Supported API: false

Specified by:
connect in interface WTList
Parameters:
index -
ref -
source -
See Also:
WTCollection.connect(Persistable, WTCollection)

connectAll

public boolean connectAll(int index,
                          WTCollection c)


Supported API: false

Specified by:
connectAll in interface WTList
Parameters:
index -
c -
Returns:
boolean
See Also:
WTCollection.connectAll(WTCollection)

get

public Object get(int index)


Supported API: false

Specified by:
get in interface WTList
Parameters:
index -
Returns:
Object

getPersistable

public Persistable getPersistable(int index)
                           throws WTException


Supported API: false

Specified by:
getPersistable in interface WTList
Parameters:
index -
Returns:
Persistable
Throws:
WTException

getQueryKey

public QueryKey getQueryKey(int index)


Supported API: false

Specified by:
getQueryKey in interface WTList
Parameters:
index -
Returns:
QueryKey

getReference

public WTReference getReference(int index)


Supported API: false

Specified by:
getReference in interface WTList
Parameters:
index -
Returns:
WTReference

indexOf

public int indexOf(Object o)


Supported API: false

Specified by:
indexOf in interface List
Parameters:
o -
Returns:
int

indexOf

public int indexOf(QueryKey query_key)


Supported API: false

Specified by:
indexOf in interface WTList
Parameters:
query_key -
Returns:
int
See Also:
List.indexOf(Object)

indexOf

public int indexOf(Persistable p)


Supported API: false

Specified by:
indexOf in interface WTList
Parameters:
p -
Returns:
int
See Also:
List.indexOf(Object)

indexOf

public int indexOf(WTReference ref)


Supported API: false

Specified by:
indexOf in interface WTList
Parameters:
ref -
Returns:
int
See Also:
List.indexOf(Object)

lastIndexOf

public int lastIndexOf(Object o)


Supported API: false

Specified by:
lastIndexOf in interface List
Parameters:
o -
Returns:
int

lastIndexOf

public int lastIndexOf(QueryKey query_key)


Supported API: false

Specified by:
lastIndexOf in interface WTList
Parameters:
query_key -
Returns:
int
See Also:
List.lastIndexOf(Object)

lastIndexOf

public int lastIndexOf(Persistable p)


Supported API: false

Specified by:
lastIndexOf in interface WTList
Parameters:
p -
Returns:
int
See Also:
List.lastIndexOf(Object)

lastIndexOf

public int lastIndexOf(WTReference ref)


Supported API: false

Specified by:
lastIndexOf in interface WTList
Parameters:
ref -
Returns:
int
See Also:
List.lastIndexOf(Object)

listIterator

public ListIterator listIterator()


Supported API: false

Specified by:
listIterator in interface WTList
Returns:
ListIterator

listIterator

public ListIterator listIterator(int index)


Supported API: false

Specified by:
listIterator in interface WTList
Parameters:
index -
Returns:
ListIterator

persistableListIterator

public ListIterator persistableListIterator()
                                     throws WTException


Supported API: false

Specified by:
persistableListIterator in interface WTList
Returns:
ListIterator
Throws:
WTException

persistableListIterator

public abstract ListIterator persistableListIterator(int index)
                                              throws WTException


Supported API: false

Specified by:
persistableListIterator in interface WTList
Parameters:
index -
Returns:
ListIterator
Throws:
WTException

queryKeyListIterator

public ListIterator queryKeyListIterator()


Supported API: false

Specified by:
queryKeyListIterator in interface WTList
Returns:
ListIterator

queryKeyListIterator

public abstract ListIterator queryKeyListIterator(int index)


Supported API: false

Specified by:
queryKeyListIterator in interface WTList
Parameters:
index -
Returns:
ListIterator

referenceListIterator

public ListIterator referenceListIterator()


Supported API: false

Specified by:
referenceListIterator in interface WTList
Returns:
ListIterator

referenceListIterator

public abstract ListIterator referenceListIterator(int index)


Supported API: false

Specified by:
referenceListIterator in interface WTList
Parameters:
index -
Returns:
ListIterator

remove

public Object remove(int index)


Supported API: false

Specified by:
remove in interface List
Parameters:
index -
Returns:
Object

set

public Object set(int index,
                  Object o)


Supported API: false

Specified by:
set in interface WTList
Parameters:
index -
o -
Returns:
Object

set

public Persistable set(int index,
                       Persistable p)


Supported API: false

Specified by:
set in interface WTList
Parameters:
index -
p -
Returns:
Persistable

set

public QueryKey set(int index,
                    QueryKey query_key)


Supported API: false

Specified by:
set in interface WTList
Parameters:
index -
query_key -
Returns:
QueryKey

set

public WTReference set(int index,
                       WTReference ref)


Supported API: false

Specified by:
set in interface WTList
Parameters:
index -
ref -
Returns:
WTReference

subList

public abstract List subList(int from_index,
                             int to_index)


Supported API: false

Specified by:
subList in interface WTList
Parameters:
from_index -
to_index -
Returns:
List

equals

public boolean equals(Object o)
Specified by:
equals in interface Collection
Overrides:
equals in class AbstractWTCollection

getModCount

abstract int getModCount()

connect

boolean connect(WTReference r,
                boolean add)
Use a cache to avoid excessive querying during the common case of building 1 collection by connecting objects from another

Specified by:
connect in class AbstractWTCollection