protected abstract class NumberFormat.NumberBuf.FindHelperIterator extends java.lang.Object implements java.util.Iterator<NumberFormat.NumberBuf.ScreenCharInfo>
Modifier and Type | Field and Description |
---|---|
private NumberFormat.NumberBuf.ScreenCharInfo |
currentValue
Holds the current screen info value
|
private int |
nextPos
Holds the next position within the screen info number model
|
Modifier | Constructor and Description |
---|---|
protected |
FindHelperIterator() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
continueIteration(NumberFormat.NumberBuf.ScreenCharInfo info)
Tests the given screen info and return true if the find iteration must proceed.
|
NumberFormat.NumberBuf.ScreenCharInfo |
getCurrentValue()
Returns the current screen info.
|
abstract int |
getNewCursorPos()
Returns the new cursor position.
|
int |
getNewDigitPos()
Returns the new digit position that corresponds to the current screen info.
|
int |
getNextPos()
Returns the next position of this find iterator for the next symbol in the screen info
model.
|
boolean |
hasNext()
Checks if there is a symbol position to test.
|
NumberFormat.NumberBuf.ScreenCharInfo |
next()
Returns the next element in the find cursor iteration.
|
private int nextPos
private NumberFormat.NumberBuf.ScreenCharInfo currentValue
public boolean hasNext()
hasNext
in interface java.util.Iterator<NumberFormat.NumberBuf.ScreenCharInfo>
public NumberFormat.NumberBuf.ScreenCharInfo next()
next
in interface java.util.Iterator<NumberFormat.NumberBuf.ScreenCharInfo>
java.util.NoSuchElementException
- if the iteration has no more elementspublic int getNewDigitPos()
public int getNextPos()
public NumberFormat.NumberBuf.ScreenCharInfo getCurrentValue()
public abstract int getNewCursorPos()
protected abstract boolean continueIteration(NumberFormat.NumberBuf.ScreenCharInfo info)
info
- The given screen info