Class OIterableObject<T>

java.lang.Object
com.orientechnologies.common.collection.OIterableObject<T>
All Implemented Interfaces:
OResettable, Iterable<T>, Iterator<T>

public class OIterableObject<T> extends Object implements Iterable<T>, OResettable, Iterator<T>
Allows to iterate over a single object
Author:
Luca Garulli (l.garulli--(at)--orientdb.com)
  • Constructor Details

    • OIterableObject

      public OIterableObject(T o)
  • Method Details

    • iterator

      public Iterator<T> iterator()
      Returns an iterator over a set of elements of type T.
      Specified by:
      iterator in interface Iterable<T>
      Returns:
      an Iterator.
    • reset

      public void reset()
      Specified by:
      reset in interface OResettable
    • hasNext

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

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

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