public abstract class AbstractSequentialResultList extends AbstractResultList
AbstractSequentialList
, this class doesn't rely on the
Collection.size()
method.Constructor and Description |
---|
AbstractSequentialResultList() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Object o) |
boolean |
containsAll(Collection c) |
Object |
get(int index) |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator |
iterator() |
protected abstract ListIterator |
itr(int index)
Implement this method and
List.size() . |
int |
lastIndexOf(Object o) |
ListIterator |
listIterator() |
ListIterator |
listIterator(int index) |
Object[] |
toArray() |
Object[] |
toArray(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
equals, hashCode, replaceAll, size, sort, spliterator, subList
parallelStream, removeIf, stream
protected abstract ListIterator itr(int index)
List.size()
.public boolean contains(Object o)
public boolean containsAll(Collection c)
public Object get(int index)
public int indexOf(Object o)
public int lastIndexOf(Object o)
public boolean isEmpty()
public Iterator iterator()
public ListIterator listIterator()
public ListIterator listIterator(int index)
public Object[] toArray()
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.