Class UCharacter.DummyValueIterator

    • 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.
      • Methods inherited from class java.lang.Object

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

      • DummyValueIterator

        private DummyValueIterator()
    • 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 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:
        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 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