|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.datatypes.Interval.Iterator
public class Interval.Iterator
Defines an iterator over the interval.
| Field Summary | |
|---|---|
private boolean |
_isInclusive2
whether to include the end value |
private _UNIT_ |
_step2
the amount to move for each step |
private int |
_stepCount
the number of steps between the start and end values |
private int |
_stepIndex
the step index between the start and end angles to visit |
private _UNIT_ |
_value
the current value |
| Constructor Summary | |
|---|---|
Interval.Iterator(_UNIT_ step,
boolean isInclusive)
Creates an interval iterator. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Whether there is another value to step to in the forward direction. |
boolean |
hasPrevious()
Whether there is another value to step to in the backward direction. |
boolean |
isInclusive()
Returns whether to include the end value. |
boolean |
isReversed()
Returns whether to iterate in from end to start. |
void |
resetToEnd()
Sets the iterator to the end value. |
void |
resetToStart()
Sets the iterator to the start value. |
_UNIT_ |
stepToNext()
Moves to the next value in the forward direction and returns it. |
_UNIT_ |
stepToPrevious()
Moves to the next value in the backward direction and returns it. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final boolean _isInclusive2
private final _UNIT_ extends I_Unitable<_UNIT_> _step2
private final int _stepCount
private int _stepIndex
private _UNIT_ extends I_Unitable<_UNIT_> _value
| Constructor Detail |
|---|
public Interval.Iterator(_UNIT_ step,
boolean isInclusive)
step - - the angle to move for each stepisInclusive - - whether to include the end value| Method Detail |
|---|
public boolean hasNext()
public boolean hasPrevious()
public boolean isInclusive()
public boolean isReversed()
public void resetToEnd()
public void resetToStart()
public _UNIT_ stepToNext()
public _UNIT_ stepToPrevious()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||