/** get the value at the specified index. */ public long get(Index i) { return storage[i.currentElement()]; } /** set the value at the sepcified index. */
/** get the value at the specified index. */ public float get(Index i) { return storage[i.currentElement()]; } /** set the value at the sepcified index. */
/** * set the value at the sepcified index. */ public void set(Index i, char value) { storage[i.currentElement()] = value; }
/** * 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; }
/** get the value at the specified index. */ public double get(Index i) { return storageD[i.currentElement()]; } /** set the value at the specified index. */
/** * get the value at the specified index. * * @param i index * @return byte value */ public byte get(Index i) { return storage[i.currentElement()]; }
/** get the value at the specified index. */ public float get(Index i) { return storage[i.currentElement()]; } /** set the value at the sepcified index. */
/** get the value at the specified index. */ public String get(Index i) { return storage[i.currentElement()]; } /** set the value at the sepcified index. */
/** * get the value at the specified index. */ public String get(Index i) { return storage[i.currentElement()]; }
/** * set the value at the sepcified index. */ public void set(Index i, String value) { storage[i.currentElement()] = value; }
/** get the value at the specified index. */ public double get(Index i) { return storageD[i.currentElement()]; } /** set the value at the specified index. */
/** get the value at the specified index. */ public boolean get(Index i) { return storage[i.currentElement()]; } /** set the value at the sepcified index. */
/** * get the value at the specified index. * * @param i index * @return byte value */ public byte get(Index i) { return storage[i.currentElement()]; }
/** * 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()]; }
/** * 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; }
/** get the value at the specified index. */ public long get(Index i) { return storage[i.currentElement()]; } /** set the value at the sepcified index. */
/** * 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; }
/** * get the value at the specified index. */ public String get(Index i) { return storage[i.currentElement()]; }
/** * 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()); }
boolean hasNext() { if (first) { first = false; return true; } srcPos += nelems; if (srcPos >= total) return false; index.incr(); resultPos = startElem + index.currentElement(); return true; }