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 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the next result for this iteration and returns true if we are not at the end of the iteration, false otherwise.
    void
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DummyValueIterator

      private DummyValueIterator()
  • Method Details

    • 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 interface ValueIterator
      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:
    • 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 interface ValueIterator
    • 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 interface ValueIterator
      Parameters:
      start - first integer in the range to iterate
      limit - one more than the last integer in the range