| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final boolean | |
| pack-priv Iterator | |
| pack-priv Object | |
| pack-priv Object | |
| protected static final Object | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public boolean | |
| public Object | |
| public void | remove()
Overrides default java. Removes from the underlying collection the last element returned by this iterator (optional operation). |
| protected abstract Object | transformObject(Object o)
return SKIP_TOKEN to indicate an object should be skipped, i.e., not exposed as part of the iterator. |
| DEBUG | back to summary |
|---|---|
| pack-priv static final boolean DEBUG | |
| inner | back to summary |
|---|---|
| pack-priv Iterator<E> inner | |
| lastOut | back to summary |
|---|---|
| pack-priv Object lastOut | |
| nextOut | back to summary |
|---|---|
| pack-priv Object nextOut | |
| SKIP_TOKEN | back to summary |
|---|---|
| protected static final Object SKIP_TOKEN | |
| supports_remove | back to summary |
|---|---|
| pack-priv boolean supports_remove | |
| WrapperIterator | back to summary |
|---|---|
| public WrapperIterator(Iterator<E> inner, boolean supports_remove) | |
| WrapperIterator | back to summary |
|---|---|
| public WrapperIterator(Iterator<E> inner) | |
| findNext | back to summary |
|---|---|
| private void findNext() | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Object next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the | |
| transformObject | back to summary |
|---|---|
| protected abstract Object transformObject(Object o) return SKIP_TOKEN to indicate an object should be skipped, i.e., not exposed as part of the iterator. (we don't use null, because we want to support iterators over null-accepting Collections.) | |