Class SingletonIterator<T>

java.lang.Object
panda.std.collection.SingletonIterator<T>
All Implemented Interfaces:
Iterator<T>

public class SingletonIterator<T> extends Object implements Iterator<T>
  • Constructor Details

    • SingletonIterator

      public SingletonIterator(T element)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
    • next

      public T next()
      Specified by:
      next in interface Iterator<T>