Package com.ibm.icu.lang
Class UCharacter.DummyValueIterator
- java.lang.Object
-
- com.ibm.icu.lang.UCharacter.DummyValueIterator
-
- All Implemented Interfaces:
ValueIterator
- Enclosing class:
- UCharacter
private static final class UCharacter.DummyValueIterator extends java.lang.Object implements ValueIterator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.ibm.icu.util.ValueIterator
ValueIterator.Element
-
-
Constructor Summary
Constructors Modifier Constructor Description private
DummyValueIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
next(ValueIterator.Element element)
Returns the next result for this iteration and returns true if we are not at the end of the iteration, false otherwise.void
reset()
Resets the iterator to start iterating from the integer index Integer.MIN_VALUE or X if a setRange(X, Y) has been called previously.void
setRange(int start, int limit)
Restricts the range of integers to iterate and resets the iteration to begin at the index argument start.
-
-
-
Method Detail
-
next
public boolean next(ValueIterator.Element element)
Description copied from interface:ValueIterator
Returns the next result for this iteration and returns true if we are not at the end of the iteration, false otherwise.
If this returns a false, the contents of elements will not be updated.
- Specified by:
next
in interfaceValueIterator
- Parameters:
element
- for storing the result index and value- Returns:
- true if we are not at the end of the iteration, false otherwise.
- See Also:
ValueIterator.Element
-
reset
public void reset()
Description copied from interface:ValueIterator
Resets the iterator to start iterating from the integer index Integer.MIN_VALUE or X if a setRange(X, Y) has been called previously.
- Specified by:
reset
in interfaceValueIterator
-
setRange
public void setRange(int start, int limit)
Description copied from interface:ValueIterator
Restricts the range of integers to iterate and resets the iteration to begin at the index argument start.
If setRange(start, end) is not performed before next(element) is called, the iteration will start from the integer index Integer.MIN_VALUE and end at Integer.MAX_VALUE.
If this range is set outside the meaningful range specified by the implementation, next(element) will always return false.
- Specified by:
setRange
in interfaceValueIterator
- Parameters:
start
- first integer in the range to iteratelimit
- one more than the last integer in the range
-
-