本文整理了Java中ucar.ma2.Index.currentElement()
方法的一些代码示例,展示了Index.currentElement()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Index.currentElement()
方法的具体详情如下:
包路径:ucar.ma2.Index
类名称:Index
方法名:currentElement
[英]Get the current element's index into the 1D backing array. VLEN stops processing.
[中]将当前元素的索引放入1D后备数组。VLEN停止处理。
代码示例来源:origin: edu.ucar/netcdf
/** get the value at the specified index. */
public long get(Index i) {
return storage[i.currentElement()];
}
/** set the value at the sepcified index. */
代码示例来源:origin: edu.ucar/cdm
/** get the value at the specified index. */
public float get(Index i) {
return storage[i.currentElement()];
}
/** set the value at the sepcified index. */
代码示例来源:origin: edu.ucar/cdm
/**
* set the value at the sepcified index.
*/
public void set(Index i, char value) {
storage[i.currentElement()] = value;
}
代码示例来源:origin: Unidata/thredds
/**
* Set the value at the specified index.
* @param i the index
* @param value set to this value
*/
public void set(Index i, short value) {
storage[i.currentElement()] = value;
}
代码示例来源:origin: Unidata/thredds
/** get the value at the specified index. */
public double get(Index i) {
return storageD[i.currentElement()];
}
/** set the value at the specified index. */
代码示例来源:origin: Unidata/thredds
/**
* get the value at the specified index.
*
* @param i index
* @return byte value
*/
public byte get(Index i) {
return storage[i.currentElement()];
}
代码示例来源:origin: edu.ucar/netcdf
/** get the value at the specified index. */
public float get(Index i) {
return storage[i.currentElement()];
}
/** set the value at the sepcified index. */
代码示例来源:origin: edu.ucar/netcdf
/** get the value at the specified index. */
public String get(Index i) {
return storage[i.currentElement()];
}
/** set the value at the sepcified index. */
代码示例来源:origin: edu.ucar/cdm
/**
* get the value at the specified index.
*/
public String get(Index i) {
return storage[i.currentElement()];
}
代码示例来源:origin: edu.ucar/cdm
/**
* set the value at the sepcified index.
*/
public void set(Index i, String value) {
storage[i.currentElement()] = value;
}
代码示例来源:origin: edu.ucar/cdm
/** get the value at the specified index. */
public double get(Index i) {
return storageD[i.currentElement()];
}
/** set the value at the specified index. */
代码示例来源:origin: edu.ucar/cdm
/** get the value at the specified index. */
public boolean get(Index i) {
return storage[i.currentElement()];
}
/** set the value at the sepcified index. */
代码示例来源:origin: edu.ucar/cdm
/**
* get the value at the specified index.
*
* @param i index
* @return byte value
*/
public byte get(Index i) {
return storage[i.currentElement()];
}
代码示例来源:origin: edu.ucar/cdm
/**
* Get the value at the specified index.
* @param i the index
* @return the value at the specified index.
*/
public short get(Index i) {
return storage[i.currentElement()];
}
代码示例来源:origin: edu.ucar/cdm
/**
* Set the value at the specified index.
* @param i the index
* @param value set to this value
*/
public void set(Index i, short value) {
storage[i.currentElement()] = value;
}
代码示例来源:origin: Unidata/thredds
/** get the value at the specified index. */
public long get(Index i) {
return storage[i.currentElement()];
}
/** set the value at the sepcified index. */
代码示例来源:origin: Unidata/thredds
/**
* set the value at the sepcified index.
*
* @param i index
* @param value set to this value
*/
public void set(Index i, byte value) {
storage[i.currentElement()] = value;
}
代码示例来源:origin: Unidata/thredds
/**
* get the value at the specified index.
*/
public String get(Index i) {
return storage[i.currentElement()];
}
代码示例来源:origin: edu.ucar/netcdf
/**
* Get the index-th StructureData of this ArrayStructure.
*
* @param i which one to get, specified by an Index.
* @return object of type StructureData.
*/
public StructureData getStructureData(Index i) {
return getStructureData(i.currentElement());
}
代码示例来源:origin: Unidata/thredds
boolean hasNext() {
if (first) {
first = false;
return true;
}
srcPos += nelems;
if (srcPos >= total)
return false;
index.incr();
resultPos = startElem + index.currentElement();
return true;
}
内容来源于网络,如有侵权,请联系作者删除!