Package com.mchange.v1.util
Class WrapperIterator
- java.lang.Object
-
- com.mchange.v1.util.WrapperIterator
-
- All Implemented Interfaces:
java.util.Iterator
public abstract class WrapperIterator extends java.lang.Object implements java.util.IteratorThis implementation does not yet support removes once hasNext() has been called... will add if necessary.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.ObjectSKIP_TOKEN
-
Constructor Summary
Constructors Constructor Description WrapperIterator(java.util.Iterator inner)WrapperIterator(java.util.Iterator inner, boolean supports_remove)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanhasNext()java.lang.Objectnext()voidremove()protected abstract java.lang.ObjecttransformObject(java.lang.Object o)return SKIP_TOKEN to indicate an object should be skipped, i.e., not exposed as part of the iterator.
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator
-
next
public java.lang.Object next()
- Specified by:
nextin interfacejava.util.Iterator
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator
-
transformObject
protected abstract java.lang.Object transformObject(java.lang.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.)
-
-