Iterable<T>, Collection<T>public class DeferedCollection<T> extends Object implements Collection<T>
Collection that returns the view of objects which are actually fetched
lazily from an Iterator.| Constructor | Description |
|---|---|
DeferedCollection(Iterator<T> result) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
add(T o) |
|
boolean |
addAll(Collection<? extends T> c) |
|
void |
clear() |
|
boolean |
contains(Object o) |
|
boolean |
containsAll(Collection<?> c) |
|
boolean |
isEmpty() |
|
Iterator<T> |
iterator() |
|
boolean |
remove(Object o) |
|
boolean |
removeAll(Collection<?> c) |
|
boolean |
retainAll(Collection<?> c) |
|
int |
size() |
|
Object[] |
toArray() |
|
<T> T[] |
toArray(T[] a) |
equals, hashCode, parallelStream, removeIf, spliterator, streampublic boolean isEmpty()
isEmpty in interface Collection<T>public int size()
size in interface Collection<T>public boolean contains(Object o)
contains in interface Collection<T>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<T>public Object[] toArray()
toArray in interface Collection<T>public <T> T[] toArray(T[] a)
toArray in interface Collection<T>public boolean add(T o)
add in interface Collection<T>public boolean remove(Object o)
remove in interface Collection<T>public boolean addAll(Collection<? extends T> c)
addAll in interface Collection<T>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<T>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<T>public void clear()
clear in interface Collection<T>Copyright © 2018 Oracle Corporation. All rights reserved.