Class EmptyIterator<T>

  • All Implemented Interfaces:
    Iterator<T>

    public final class EmptyIterator<T>
    extends Object
    implements Iterator<T>
    A singleton instance of an empty iterator; this is better than Collections.EMPTY_SET.iterator(), which allocates an iterator object;