Package com.sun.xml.xsom.impl.scd
Class Iterators
- java.lang.Object
-
- com.sun.xml.xsom.impl.scd.Iterators
-
public class Iterators extends java.lang.Object
Various convenientIterator
implementations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Iterators.Adapter<T,U>
Iterator
that wraps anotherIterator
and changes its type.static class
Iterators.Array<T>
Array iterator.static class
Iterators.Filter<T>
Filter out objects from another iterator.static class
Iterators.Map<T,U>
For each U, apply U->Iterator<T> function and then iterate all the resulting T.(package private) static class
Iterators.ReadOnly<T>
(package private) static class
Iterators.Singleton<T>
Iterator
that returns a single (or no) value.static class
Iterators.Union<T>
Union of two iterators.(package private) static class
Iterators.Unique<T>
Only return unique items.
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Iterator
EMPTY
-
Constructor Summary
Constructors Constructor Description Iterators()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> java.util.Iterator<T>
empty()
static <T> java.util.Iterator<T>
singleton(T value)
-