类 IteratorFast
- java.lang.Object
-
- org.meteoinfo.ndarray.IteratorFast
-
- 所有已实现的接口:
IndexIterator
public class IteratorFast extends java.lang.Object implements IndexIterator
A "fast" iterator that can be used when the data is in canonical order.- 作者:
- caron
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleangetBooleanCurrent()Get current value as a booleanbooleangetBooleanNext()Get next value as a booleanbytegetByteCurrent()Get current value as a bytebytegetByteNext()Get next value as a bytechargetCharCurrent()Get current value as a charchargetCharNext()Get next value as a charComplexgetComplexCurrent()Get current value as a complexComplexgetComplexNext()Get next value as a complexint[]getCurrentCounter()Get the current counter, use for debuggingdoublegetDoubleCurrent()Get current value as a doubledoublegetDoubleNext()Get next value as a doublefloatgetFloatCurrent()Get current value as a floatfloatgetFloatNext()Get next value as a floatintgetIntCurrent()Get current value as a intintgetIntNext()Get next value as a intlonggetLongCurrent()Get current value as a longlonggetLongNext()Get next value as a longjava.lang.ObjectgetObjectCurrent()Get current value as a Objectjava.lang.ObjectgetObjectNext()Get next value as an ObjectshortgetShortCurrent()Get current value as a shortshortgetShortNext()Get next value as a shortjava.lang.StringgetStringCurrent()Get current value as a stringjava.lang.StringgetStringNext()Get next value as a stringbooleanhasMore(int howMany)booleanhasNext()Return true if there are more elements in the iteration.java.lang.Objectnext()Get next value as an ObjectvoidsetBooleanCurrent(boolean val)Set current value with a booleanvoidsetBooleanNext(boolean val)Set next value with a booleanvoidsetByteCurrent(byte val)Set current value with a bytevoidsetByteNext(byte val)Set next value with a bytevoidsetCharCurrent(char val)Set current value with a charvoidsetCharNext(char val)Set next value with a charvoidsetComplexCurrent(Complex val)Set current value with a complexvoidsetComplexNext(Complex val)Set next value with a complexvoidsetDoubleCurrent(double val)Set current value with a doublevoidsetDoubleNext(double val)Set next value with a doublevoidsetFloatCurrent(float val)Set current value with a floatvoidsetFloatNext(float val)Set next value with a floatvoidsetIntCurrent(int val)Set current value with a intvoidsetIntNext(int val)Set next value with a intvoidsetLongCurrent(long val)Set current value with a longvoidsetLongNext(long val)Set next value with a longvoidsetObjectCurrent(java.lang.Object val)Set current value with a ObjectvoidsetObjectNext(java.lang.Object val)Set next value with a ObjectvoidsetShortCurrent(short val)Set current value with a shortvoidsetShortNext(short val)Set next value with a shortvoidsetStringCurrent(java.lang.String val)Set current value with a stringvoidsetStringNext(java.lang.String val)Set next value with a stringjava.lang.StringtoString()
-
-
-
方法详细资料
-
hasNext
public boolean hasNext()
从接口复制的说明:IndexIteratorReturn true if there are more elements in the iteration.- 指定者:
hasNext在接口中IndexIterator- 返回:
- true if there are more elements in the iteration.
-
hasMore
public boolean hasMore(int howMany)
-
toString
public java.lang.String toString()
- 覆盖:
toString在类中java.lang.Object
-
getCurrentCounter
public int[] getCurrentCounter()
从接口复制的说明:IndexIteratorGet the current counter, use for debugging- 指定者:
getCurrentCounter在接口中IndexIterator- 返回:
- the current counter, use for debugging
-
getDoubleCurrent
public double getDoubleCurrent()
从接口复制的说明:IndexIteratorGet current value as a double- 指定者:
getDoubleCurrent在接口中IndexIterator- 返回:
- current value as a double
-
getDoubleNext
public double getDoubleNext()
从接口复制的说明:IndexIteratorGet next value as a double- 指定者:
getDoubleNext在接口中IndexIterator- 返回:
- next value as a double
-
setDoubleCurrent
public void setDoubleCurrent(double val)
从接口复制的说明:IndexIteratorSet current value with a double- 指定者:
setDoubleCurrent在接口中IndexIterator- 参数:
val- the current value as a double
-
setDoubleNext
public void setDoubleNext(double val)
从接口复制的说明:IndexIteratorSet next value with a double- 指定者:
setDoubleNext在接口中IndexIterator- 参数:
val- the next value as a double
-
getFloatCurrent
public float getFloatCurrent()
从接口复制的说明:IndexIteratorGet current value as a float- 指定者:
getFloatCurrent在接口中IndexIterator- 返回:
- current value as a float
-
getFloatNext
public float getFloatNext()
从接口复制的说明:IndexIteratorGet next value as a float- 指定者:
getFloatNext在接口中IndexIterator- 返回:
- next value as a float
-
setFloatCurrent
public void setFloatCurrent(float val)
从接口复制的说明:IndexIteratorSet current value with a float- 指定者:
setFloatCurrent在接口中IndexIterator- 参数:
val- the current value as a float
-
setFloatNext
public void setFloatNext(float val)
从接口复制的说明:IndexIteratorSet next value with a float- 指定者:
setFloatNext在接口中IndexIterator- 参数:
val- the next value as a float
-
getLongCurrent
public long getLongCurrent()
从接口复制的说明:IndexIteratorGet current value as a long- 指定者:
getLongCurrent在接口中IndexIterator- 返回:
- current value as a long
-
getLongNext
public long getLongNext()
从接口复制的说明:IndexIteratorGet next value as a long- 指定者:
getLongNext在接口中IndexIterator- 返回:
- next value as a long
-
setLongCurrent
public void setLongCurrent(long val)
从接口复制的说明:IndexIteratorSet current value with a long- 指定者:
setLongCurrent在接口中IndexIterator- 参数:
val- the current value as a long
-
setLongNext
public void setLongNext(long val)
从接口复制的说明:IndexIteratorSet next value with a long- 指定者:
setLongNext在接口中IndexIterator- 参数:
val- the next value as a long
-
getIntCurrent
public int getIntCurrent()
从接口复制的说明:IndexIteratorGet current value as a int- 指定者:
getIntCurrent在接口中IndexIterator- 返回:
- current value as a int
-
getIntNext
public int getIntNext()
从接口复制的说明:IndexIteratorGet next value as a int- 指定者:
getIntNext在接口中IndexIterator- 返回:
- next value as a int
-
setIntCurrent
public void setIntCurrent(int val)
从接口复制的说明:IndexIteratorSet current value with a int- 指定者:
setIntCurrent在接口中IndexIterator- 参数:
val- the current value as a int
-
setIntNext
public void setIntNext(int val)
从接口复制的说明:IndexIteratorSet next value with a int- 指定者:
setIntNext在接口中IndexIterator- 参数:
val- the next value as a int
-
getShortCurrent
public short getShortCurrent()
从接口复制的说明:IndexIteratorGet current value as a short- 指定者:
getShortCurrent在接口中IndexIterator- 返回:
- current value as a short
-
getShortNext
public short getShortNext()
从接口复制的说明:IndexIteratorGet next value as a short- 指定者:
getShortNext在接口中IndexIterator- 返回:
- next value as a short
-
setShortCurrent
public void setShortCurrent(short val)
从接口复制的说明:IndexIteratorSet current value with a short- 指定者:
setShortCurrent在接口中IndexIterator- 参数:
val- the current value as a short
-
setShortNext
public void setShortNext(short val)
从接口复制的说明:IndexIteratorSet next value with a short- 指定者:
setShortNext在接口中IndexIterator- 参数:
val- the next value as a short
-
getByteCurrent
public byte getByteCurrent()
从接口复制的说明:IndexIteratorGet current value as a byte- 指定者:
getByteCurrent在接口中IndexIterator- 返回:
- current value as a byte
-
getByteNext
public byte getByteNext()
从接口复制的说明:IndexIteratorGet next value as a byte- 指定者:
getByteNext在接口中IndexIterator- 返回:
- next value as a byte
-
setByteCurrent
public void setByteCurrent(byte val)
从接口复制的说明:IndexIteratorSet current value with a byte- 指定者:
setByteCurrent在接口中IndexIterator- 参数:
val- the current value as a byte
-
setByteNext
public void setByteNext(byte val)
从接口复制的说明:IndexIteratorSet next value with a byte- 指定者:
setByteNext在接口中IndexIterator- 参数:
val- the next value as a byte
-
getCharCurrent
public char getCharCurrent()
从接口复制的说明:IndexIteratorGet current value as a char- 指定者:
getCharCurrent在接口中IndexIterator- 返回:
- current value as a char
-
getCharNext
public char getCharNext()
从接口复制的说明:IndexIteratorGet next value as a char- 指定者:
getCharNext在接口中IndexIterator- 返回:
- next value as a char
-
setCharCurrent
public void setCharCurrent(char val)
从接口复制的说明:IndexIteratorSet current value with a char- 指定者:
setCharCurrent在接口中IndexIterator- 参数:
val- the current value as a char
-
setCharNext
public void setCharNext(char val)
从接口复制的说明:IndexIteratorSet next value with a char- 指定者:
setCharNext在接口中IndexIterator- 参数:
val- the next value as a char
-
getBooleanCurrent
public boolean getBooleanCurrent()
从接口复制的说明:IndexIteratorGet current value as a boolean- 指定者:
getBooleanCurrent在接口中IndexIterator- 返回:
- current value as a boolean
-
getBooleanNext
public boolean getBooleanNext()
从接口复制的说明:IndexIteratorGet next value as a boolean- 指定者:
getBooleanNext在接口中IndexIterator- 返回:
- next value as a boolean
-
setBooleanCurrent
public void setBooleanCurrent(boolean val)
从接口复制的说明:IndexIteratorSet current value with a boolean- 指定者:
setBooleanCurrent在接口中IndexIterator- 参数:
val- the current value as a boolean
-
setBooleanNext
public void setBooleanNext(boolean val)
从接口复制的说明:IndexIteratorSet next value with a boolean- 指定者:
setBooleanNext在接口中IndexIterator- 参数:
val- the next value as a boolean
-
getStringCurrent
public java.lang.String getStringCurrent()
从接口复制的说明:IndexIteratorGet current value as a string- 指定者:
getStringCurrent在接口中IndexIterator- 返回:
- current value as a string
-
getStringNext
public java.lang.String getStringNext()
从接口复制的说明:IndexIteratorGet next value as a string- 指定者:
getStringNext在接口中IndexIterator- 返回:
- next value as a string
-
setStringCurrent
public void setStringCurrent(java.lang.String val)
从接口复制的说明:IndexIteratorSet current value with a string- 指定者:
setStringCurrent在接口中IndexIterator- 参数:
val- the current value as a string
-
setStringNext
public void setStringNext(java.lang.String val)
从接口复制的说明:IndexIteratorSet next value with a string- 指定者:
setStringNext在接口中IndexIterator- 参数:
val- the next value as a string
-
getComplexCurrent
public Complex getComplexCurrent()
从接口复制的说明:IndexIteratorGet current value as a complex- 指定者:
getComplexCurrent在接口中IndexIterator- 返回:
- Current value as a complex
-
getComplexNext
public Complex getComplexNext()
从接口复制的说明:IndexIteratorGet next value as a complex- 指定者:
getComplexNext在接口中IndexIterator- 返回:
- next value as a complex
-
setComplexCurrent
public void setComplexCurrent(Complex val)
从接口复制的说明:IndexIteratorSet current value with a complex- 指定者:
setComplexCurrent在接口中IndexIterator- 参数:
val- The current value as a complex
-
setComplexNext
public void setComplexNext(Complex val)
从接口复制的说明:IndexIteratorSet next value with a complex- 指定者:
setComplexNext在接口中IndexIterator- 参数:
val- the next value as a complex
-
getObjectCurrent
public java.lang.Object getObjectCurrent()
从接口复制的说明:IndexIteratorGet current value as a Object- 指定者:
getObjectCurrent在接口中IndexIterator- 返回:
- current value as a Object
-
getObjectNext
public java.lang.Object getObjectNext()
从接口复制的说明:IndexIteratorGet next value as an Object- 指定者:
getObjectNext在接口中IndexIterator- 返回:
- next value as an Object
-
setObjectCurrent
public void setObjectCurrent(java.lang.Object val)
从接口复制的说明:IndexIteratorSet current value with a Object- 指定者:
setObjectCurrent在接口中IndexIterator- 参数:
val- the current value as a Object
-
setObjectNext
public void setObjectNext(java.lang.Object val)
从接口复制的说明:IndexIteratorSet next value with a Object- 指定者:
setObjectNext在接口中IndexIterator- 参数:
val- the next value as a Object
-
next
public java.lang.Object next()
从接口复制的说明:IndexIteratorGet next value as an Object- 指定者:
next在接口中IndexIterator- 返回:
- next value as an Object
-
-