public abstract class AbstractNonSequentialResultList extends AbstractResultList
AbstractList
, this class doesn't rely on the
Collection.size()
method.Modifier and Type | Field and Description |
---|---|
protected static java.lang.Object |
PAST_END |
Constructor and Description |
---|
AbstractNonSequentialResultList() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection c) |
java.lang.Object |
get(int index) |
protected abstract java.lang.Object |
getInternal(int index)
Implement this method and
List.size() . |
int |
indexOf(java.lang.Object o) |
boolean |
isEmpty() |
java.util.Iterator |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator |
listIterator() |
java.util.ListIterator |
listIterator(int index) |
java.util.List |
subList(int fromIndex,
int toIndex) |
java.lang.Object[] |
toArray() |
java.lang.Object[] |
toArray(java.lang.Object[] a) |
add, add, addAll, addAll, assertOpen, clear, getUserObject, remove, remove, removeAll, retainAll, set, setUserObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, isClosed, isProviderOpen
protected abstract java.lang.Object getInternal(int index)
List.size()
. Return PAST_END
if the index is out of bounds.public boolean contains(java.lang.Object o)
public boolean containsAll(java.util.Collection c)
public java.lang.Object get(int index)
public int indexOf(java.lang.Object o)
public int lastIndexOf(java.lang.Object o)
public boolean isEmpty()
public java.util.Iterator iterator()
public java.util.ListIterator listIterator()
public java.util.ListIterator listIterator(int index)
public java.lang.Object[] toArray()
public java.lang.Object[] toArray(java.lang.Object[] a)
public java.util.List subList(int fromIndex, int toIndex)
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.