Package com.google.common.collect
Enum Class AbstractIterator.State
- All Implemented Interfaces:
Serializable
,Comparable<AbstractIterator.State>
,Constable
- Enclosing class:
AbstractIterator<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractIterator.State
Returns the enum constant of this class with the specified name.static AbstractIterator.State[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
READY
We have computed the next element and haven't returned it yet. -
NOT_READY
We haven't yet computed or have already returned the element. -
DONE
We have reached the end of the data and are finished. -
FAILED
We've suffered an exception and are kaput.
-
-
Constructor Details
-
State
private State()
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-