Enum Class AbstractIterator.State

java.lang.Object
java.lang.Enum<AbstractIterator.State>
com.google.common.collect.AbstractIterator.State
All Implemented Interfaces:
Serializable, Comparable<AbstractIterator.State>, Constable
Enclosing class:
AbstractIterator<T>

private static enum AbstractIterator.State extends Enum<AbstractIterator.State>
  • Enum Constant Details

    • READY

      public static final AbstractIterator.State READY
      We have computed the next element and haven't returned it yet.
    • NOT_READY

      public static final AbstractIterator.State NOT_READY
      We haven't yet computed or have already returned the element.
    • DONE

      public static final AbstractIterator.State DONE
      We have reached the end of the data and are finished.
    • FAILED

      public static final AbstractIterator.State FAILED
      We've suffered an exception and are kaput.
  • Constructor Details

    • State

      private State()
  • Method Details

    • values

      public static AbstractIterator.State[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AbstractIterator.State valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null