com.sibvisions.rad.persist
Class AbstractStorage.AllFetchedList<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by com.sibvisions.util.ArrayUtil<E>
              extended by com.sibvisions.rad.persist.AbstractStorage.AllFetchedList<E>
Type Parameters:
E - the element type
All Implemented Interfaces:
IAllFetched, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>, java.util.RandomAccess
Enclosing class:
AbstractStorage

protected static class AbstractStorage.AllFetchedList<E>
extends ArrayUtil<E>
implements IAllFetched

The AllFetchedList is an ArrayUtil wrapper that implements the marker interface IAllFetched.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
AbstractStorage.AllFetchedList()
          Constructs an empty list with initial size ArrayUtil.MIN_SIZE.
AbstractStorage.AllFetchedList(java.util.Collection<? extends E> pCollection)
          Constructs a list containing the elements of the specified collection.
AbstractStorage.AllFetchedList(E... pSourceArray)
          Constructs a list with the given array.
AbstractStorage.AllFetchedList(E[] pSourceArray, int pSize)
          Constructs a list with the given array.
AbstractStorage.AllFetchedList(E[] pSourceArray, int pOffset, int pSize)
          Constructs a list with the given array.
AbstractStorage.AllFetchedList(int pInitialSize)
          Constructs an empty list.
 
Method Summary
 
Methods inherited from class com.sibvisions.util.ArrayUtil
add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, clear, clear, clear, clear, clear, clear, clear, clear, clone, contains, contains, contains, contains, contains, contains, contains, contains, containsAll, containsAll, containsOne, containsOne, containsReference, containsReference, enumeration, equals, first, get, hashCode, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOfReference, indexOfReference, indexOfReference, indexOfReference, indexOfReference, indexOfReference, intersect, isEmpty, last, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOfReference, lastIndexOfReference, lastIndexOfReference, lastIndexOfReference, merge, merge, merge, merge, merge, merge, merge, merge, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, removeAll, removeAll, removeLast, removeLast, removeLast, removeLast, removeLast, removeLast, removeLast, removeLast, removeRange, removeRange, removeRange, removeRange, removeRange, removeRange, removeRange, removeRange, removeReference, set, setSize, size, toArray, toArray, toArray, truncate, truncate, truncate, truncate, truncate, truncate, truncate, truncate
 
Methods inherited from class java.util.AbstractList
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, removeAll, retainAll
 

Constructor Detail

AbstractStorage.AllFetchedList

public AbstractStorage.AllFetchedList()
Constructs an empty list with initial size ArrayUtil.MIN_SIZE.


AbstractStorage.AllFetchedList

public AbstractStorage.AllFetchedList(int pInitialSize)
Constructs an empty list.

Parameters:
pInitialSize - the initial size.

AbstractStorage.AllFetchedList

public AbstractStorage.AllFetchedList(E... pSourceArray)
Constructs a list with the given array. The given array is used directly. If it should be cloned, it has to be done outside manually.

Parameters:
pSourceArray - the array for this list.
Throws:
java.lang.NullPointerException - if the specified pSourceArray is null.

AbstractStorage.AllFetchedList

public AbstractStorage.AllFetchedList(E[] pSourceArray,
                                      int pSize)
Constructs a list with the given array. The given array is used directly. If it should be cloned, it has to be done outside manually. The list has the given size. If the size is < 0 the size is set to the array length. If the size is greater than the array length, an IndexOutOfBoundsException is thrown.

Parameters:
pSourceArray - the array for this list.
pSize - the size of this list.
Throws:
java.lang.NullPointerException - if the specified pSourceArray is null.
java.lang.IndexOutOfBoundsException - if the specified pSize is greater than the array length.

AbstractStorage.AllFetchedList

public AbstractStorage.AllFetchedList(E[] pSourceArray,
                                      int pOffset,
                                      int pSize)
Constructs a list with the given array. The given array is used directly. If it should be cloned, it has to be done outside manually. The list starts at the given offset. The list has the given size. If the size is < 0 the size is set to the array length. If offset + size is greater than the array length, an IndexOutOfBoundsException is thrown.

Parameters:
pSourceArray - the array for this list.
pOffset - the offset at which the list starts.
pSize - the size of this list.
Throws:
java.lang.IndexOutOfBoundsException - if the specified pOffset + pSize is greater than the array length.

AbstractStorage.AllFetchedList

public AbstractStorage.AllFetchedList(java.util.Collection<? extends E> pCollection)
Constructs a list containing the elements of the specified collection.

Parameters:
pCollection - the collection whose elements are to be placed into this list.
Throws:
java.lang.NullPointerException - if the specified collection is null.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.