Package eu.simuline.util
Enum CyclicArrayList.StateIter
- java.lang.Object
-
- java.lang.Enum<CyclicArrayList.StateIter>
-
- eu.simuline.util.CyclicArrayList.StateIter
-
- All Implemented Interfaces:
Serializable,Comparable<CyclicArrayList.StateIter>
- Enclosing class:
- CyclicArrayList<E>
static enum CyclicArrayList.StateIter extends Enum<CyclicArrayList.StateIter>
Enumeration of the state of an iterator.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CALLED_ADDThe conditioncalledLast == CALLED_ADDmeans that among the methodsCyclicIterator.next(),CyclicIterator.previous(),CyclicIterator.add(E)andCyclicIterator.remove()the methodCyclicIterator.add(E)was the last successfully invoked since this iterator was created or refreshed.CALLED_NEXTThe conditioncalledLast == CALLED_NEXTmeans that among the methodsCyclicIterator.next(),CyclicIterator.previous(),CyclicIterator.add(E)andCyclicIterator.remove()the methodCyclicIterator.next()was the last successfully invoked since this iterator was created or refreshed.CALLED_NOTHINGThe conditioncalledLast == CALLED_NOTHINGmeans that neither of the methodsCyclicIterator.next(),CyclicIterator.previous(),CyclicIterator.add(E)andCyclicIterator.remove()was ever successfully invoked since this iterator was created or refreshed.CALLED_PREVIOUSThe conditioncalledLast == CALLED_PREVIOUSmeans that among the methodsCyclicIterator.next(),CyclicIterator.previous(),CyclicIterator.add(E)andCyclicIterator.remove()the methodCyclicIterator.previous()was the last successfully invoked since this iterator was created or refreshed.CALLED_REMOVEThe conditioncalledLast == CALLED_REMOVEmeans that among the methodsCyclicIterator.next(),CyclicIterator.previous(),CyclicIterator.add(E)andCyclicIterator.remove()the methodCyclicIterator.previous()was the last invoked since this iterator was created or refreshed.
-
Constructor Summary
Constructors Modifier Constructor Description privateStateIter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CyclicArrayList.StateItervalueOf(String name)Returns the enum constant of this type with the specified name.static CyclicArrayList.StateIter[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CALLED_NOTHING
public static final CyclicArrayList.StateIter CALLED_NOTHING
The conditioncalledLast == CALLED_NOTHINGmeans that neither of the methodsCyclicIterator.next(),CyclicIterator.previous(),CyclicIterator.add(E)andCyclicIterator.remove()was ever successfully invoked since this iterator was created or refreshed.- See Also:
CyclicIterator.refresh()
-
CALLED_PREVIOUS
public static final CyclicArrayList.StateIter CALLED_PREVIOUS
The conditioncalledLast == CALLED_PREVIOUSmeans that among the methodsCyclicIterator.next(),CyclicIterator.previous(),CyclicIterator.add(E)andCyclicIterator.remove()the methodCyclicIterator.previous()was the last successfully invoked since this iterator was created or refreshed.
-
CALLED_NEXT
public static final CyclicArrayList.StateIter CALLED_NEXT
The conditioncalledLast == CALLED_NEXTmeans that among the methodsCyclicIterator.next(),CyclicIterator.previous(),CyclicIterator.add(E)andCyclicIterator.remove()the methodCyclicIterator.next()was the last successfully invoked since this iterator was created or refreshed.
-
CALLED_ADD
public static final CyclicArrayList.StateIter CALLED_ADD
The conditioncalledLast == CALLED_ADDmeans that among the methodsCyclicIterator.next(),CyclicIterator.previous(),CyclicIterator.add(E)andCyclicIterator.remove()the methodCyclicIterator.add(E)was the last successfully invoked since this iterator was created or refreshed.
-
CALLED_REMOVE
public static final CyclicArrayList.StateIter CALLED_REMOVE
The conditioncalledLast == CALLED_REMOVEmeans that among the methodsCyclicIterator.next(),CyclicIterator.previous(),CyclicIterator.add(E)andCyclicIterator.remove()the methodCyclicIterator.previous()was the last invoked since this iterator was created or refreshed.
-
-
Method Detail
-
values
public static CyclicArrayList.StateIter[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CyclicArrayList.StateIter c : CyclicArrayList.StateIter.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CyclicArrayList.StateIter valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-