|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.ma2.IteratorFast
public class IteratorFast
A "fast" iterator that can be used when the data is in canonical order.
| Method Summary | |
|---|---|
boolean |
getBooleanCurrent()
Get current value as a boolean |
boolean |
getBooleanNext()
Get next value as a boolean |
byte |
getByteCurrent()
Get current value as a byte |
byte |
getByteNext()
Get next value as a byte |
char |
getCharCurrent()
Get current value as a char |
char |
getCharNext()
Get next value as a char |
int[] |
getCurrentCounter()
Get the current counter, use for debugging |
double |
getDoubleCurrent()
Get current value as a double |
double |
getDoubleNext()
Get next value as a double |
float |
getFloatCurrent()
Get current value as a float |
float |
getFloatNext()
Get next value as a float |
int |
getIntCurrent()
Get current value as a int |
int |
getIntNext()
Get next value as a int |
long |
getLongCurrent()
Get current value as a long |
long |
getLongNext()
Get next value as a long |
java.lang.Object |
getObjectCurrent()
Get current value as a Object |
java.lang.Object |
getObjectNext()
Get next value as an Object |
short |
getShortCurrent()
Get current value as a short |
short |
getShortNext()
Get next value as a short |
boolean |
hasMore(int howMany)
|
boolean |
hasNext()
Return true if there are more elements in the iteration. |
java.lang.Object |
next()
Get next value as an Object |
void |
setBooleanCurrent(boolean val)
Set current value with a boolean |
void |
setBooleanNext(boolean val)
Set next value with a boolean |
void |
setByteCurrent(byte val)
Set current value with a byte |
void |
setByteNext(byte val)
Set next value with a byte |
void |
setCharCurrent(char val)
Set current value with a char |
void |
setCharNext(char val)
Set next value with a char |
void |
setDoubleCurrent(double val)
Set current value with a double |
void |
setDoubleNext(double val)
Set next value with a double |
void |
setFloatCurrent(float val)
Set current value with a float |
void |
setFloatNext(float val)
Set next value with a float |
void |
setIntCurrent(int val)
Set current value with a int |
void |
setIntNext(int val)
Set next value with a int |
void |
setLongCurrent(long val)
Set current value with a long |
void |
setLongNext(long val)
Set next value with a long |
void |
setObjectCurrent(java.lang.Object val)
Set current value with a Object |
void |
setObjectNext(java.lang.Object val)
Set next value with a Object |
void |
setShortCurrent(short val)
Set current value with a short |
void |
setShortNext(short val)
Set next value with a short |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean hasNext()
IndexIterator
hasNext in interface IndexIteratorpublic boolean hasMore(int howMany)
public java.lang.String toString()
toString in class java.lang.Objectpublic int[] getCurrentCounter()
IndexIterator
getCurrentCounter in interface IndexIteratorpublic double getDoubleCurrent()
IndexIterator
getDoubleCurrent in interface IndexIteratorpublic double getDoubleNext()
IndexIterator
getDoubleNext in interface IndexIteratorpublic void setDoubleCurrent(double val)
IndexIterator
setDoubleCurrent in interface IndexIteratorval - the current value as a doublepublic void setDoubleNext(double val)
IndexIterator
setDoubleNext in interface IndexIteratorval - the next value as a doublepublic float getFloatCurrent()
IndexIterator
getFloatCurrent in interface IndexIteratorpublic float getFloatNext()
IndexIterator
getFloatNext in interface IndexIteratorpublic void setFloatCurrent(float val)
IndexIterator
setFloatCurrent in interface IndexIteratorval - the current value as a floatpublic void setFloatNext(float val)
IndexIterator
setFloatNext in interface IndexIteratorval - the next value as a floatpublic long getLongCurrent()
IndexIterator
getLongCurrent in interface IndexIteratorpublic long getLongNext()
IndexIterator
getLongNext in interface IndexIteratorpublic void setLongCurrent(long val)
IndexIterator
setLongCurrent in interface IndexIteratorval - the current value as a longpublic void setLongNext(long val)
IndexIterator
setLongNext in interface IndexIteratorval - the next value as a longpublic int getIntCurrent()
IndexIterator
getIntCurrent in interface IndexIteratorpublic int getIntNext()
IndexIterator
getIntNext in interface IndexIteratorpublic void setIntCurrent(int val)
IndexIterator
setIntCurrent in interface IndexIteratorval - the current value as a intpublic void setIntNext(int val)
IndexIterator
setIntNext in interface IndexIteratorval - the next value as a intpublic short getShortCurrent()
IndexIterator
getShortCurrent in interface IndexIteratorpublic short getShortNext()
IndexIterator
getShortNext in interface IndexIteratorpublic void setShortCurrent(short val)
IndexIterator
setShortCurrent in interface IndexIteratorval - the current value as a shortpublic void setShortNext(short val)
IndexIterator
setShortNext in interface IndexIteratorval - the next value as a shortpublic byte getByteCurrent()
IndexIterator
getByteCurrent in interface IndexIteratorpublic byte getByteNext()
IndexIterator
getByteNext in interface IndexIteratorpublic void setByteCurrent(byte val)
IndexIterator
setByteCurrent in interface IndexIteratorval - the current value as a bytepublic void setByteNext(byte val)
IndexIterator
setByteNext in interface IndexIteratorval - the next value as a bytepublic char getCharCurrent()
IndexIterator
getCharCurrent in interface IndexIteratorpublic char getCharNext()
IndexIterator
getCharNext in interface IndexIteratorpublic void setCharCurrent(char val)
IndexIterator
setCharCurrent in interface IndexIteratorval - the current value as a charpublic void setCharNext(char val)
IndexIterator
setCharNext in interface IndexIteratorval - the next value as a charpublic boolean getBooleanCurrent()
IndexIterator
getBooleanCurrent in interface IndexIteratorpublic boolean getBooleanNext()
IndexIterator
getBooleanNext in interface IndexIteratorpublic void setBooleanCurrent(boolean val)
IndexIterator
setBooleanCurrent in interface IndexIteratorval - the current value as a booleanpublic void setBooleanNext(boolean val)
IndexIterator
setBooleanNext in interface IndexIteratorval - the next value as a booleanpublic java.lang.Object getObjectCurrent()
IndexIterator
getObjectCurrent in interface IndexIteratorpublic java.lang.Object getObjectNext()
IndexIterator
getObjectNext in interface IndexIteratorpublic void setObjectCurrent(java.lang.Object val)
IndexIterator
setObjectCurrent in interface IndexIteratorval - the current value as a Objectpublic void setObjectNext(java.lang.Object val)
IndexIterator
setObjectNext in interface IndexIteratorval - the next value as a Objectpublic java.lang.Object next()
IndexIterator
next in interface IndexIterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||