T - The FetchList typepublic class FetchList<T> extends LinkedList<T>
modCount| Constructor and Description |
|---|
FetchList(Iterator<T> iter,
int fetchSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
fill()
used to fill the list
|
int |
getConsumedElements() |
int |
getTotalElements() |
boolean |
isEmpty() |
T |
poll()
return the first element and makes the list to be filled in case its size is zero
|
int |
size()
to provide an actual size, fills the list if there are elements to fill it
|
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, spliterator, toArray, toArrayiteratorequals, hashCode, listIterator, removeRange, subListcontainsAll, removeAll, retainAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCode, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subListparallelStream, removeIf, streampublic void fill()
public T poll()
public int getConsumedElements()
public int getTotalElements()
public int size()
public boolean isEmpty()
isEmpty in interface Collection<T>isEmpty in interface List<T>isEmpty in class AbstractCollection<T>Copyright © 2017. All rights reserved.