XSOM 20110809-redhat-3

com.sun.xml.xsom.impl.scd
Class Iterators

java.lang.Object
  extended by com.sun.xml.xsom.impl.scd.Iterators

public class Iterators
extends Object

Various convenient Iterator implementations.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class Iterators.Adapter<T,U>
          Iterator that wraps another Iterator 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.
static class Iterators.Union<T>
          Union of two iterators.
 
Constructor Summary
Iterators()
           
 
Method Summary
static
<T> Iterator<T>
empty()
           
static
<T> Iterator<T>
singleton(T value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Iterators

public Iterators()
Method Detail

empty

public static <T> Iterator<T> empty()

singleton

public static <T> Iterator<T> singleton(T value)

XSOM 20110809-redhat-3

Copyright © 2012 Oracle. All Rights Reserved.