Ejemplo n.º 1
0
 /**
  * Returns the element in the array at the specified index. <br>
  * <b>Warning: </b> as this method has to be fast, no check on specified index.
  *
  * @return the element at the specified index, as a byte
  */
 public final boolean getBooleanQuick(final int idx) {
   return PrimitiveUtils.toBoolean(dataBoolean[startIndex + idx]);
 }
Ejemplo n.º 2
0
 /**
  * Returns the element in the array at the specified index. <br>
  * <b>Warning: </b> as this method has to be fast, no check on specified index.
  *
  * @return the element at the specified index, as a byte
  */
 public final byte getByteQuick(final int idx) {
   return PrimitiveUtils.toByte(dataByte[startIndex + idx]);
 }
Ejemplo n.º 3
0
 /**
  * Returns the element in the array at the specified index. <br>
  * <b>Warning: </b> as this method has to be fast, no check on specified index.
  *
  * @return the element at the specified index, as a byte
  */
 public final char getCharQuick(final int idx) {
   return PrimitiveUtils.toChar(dataChar[startIndex + idx]);
 }
Ejemplo n.º 4
0
 /**
  * Returns the element in the array at the specified index. <br>
  * <b>Warning: </b> as this method has to be fast, no check on specified index.
  *
  * @return the element at the specified index, as a short
  */
 public final short getShortQuick(final int idx) {
   return PrimitiveUtils.toShort(dataShort[startIndex + idx]);
 }
Ejemplo n.º 5
0
 /**
  * Returns the element in the array at the specified index. <br>
  * <b>Warning: </b> as this method has to be fast, no check on specified index.
  *
  * @return the element at the specified index, as a long
  */
 public final long getLongQuick(final int idx) {
   return PrimitiveUtils.toLong(dataLong[startIndex + idx]);
 }
Ejemplo n.º 6
0
 /**
  * Returns the element in the array at the specified index. <br>
  * <b>Warning: </b> As this method has to be fast, no check are perfomed on specified index.
  * Also, no <tt>ConcurrentModificationException</tt> will be thrown (thus, it is higly
  * discouraged to use it unless you know exactly what it is done with the internal array).
  *
  * @return the element at the specified index, as a int
  */
 public final int getIntQuick(final int idx) {
   return PrimitiveUtils.toInt(dataInt[startIndex + idx]);
 }
Ejemplo n.º 7
0
 /**
  * Returns the element in the array at the specified index. <br>
  * <b>Warning: </b> As this method has to be fast, no check are perfomed on specified index.
  * Also, no <tt>ConcurrentModificationException</tt> will be thrown (thus, it is higly
  * discouraged to use it unless you know exactly what it is done with the internal array).
  *
  * @return the element at the specified index, as a float
  */
 public final float getFloatQuick(final int idx) {
   return PrimitiveUtils.toFloat(dataFloat[startIndex + idx]);
 }
Ejemplo n.º 8
0
 /**
  * Returns the element in the array at the specified index. <br>
  * <b>Warning: </b> As this method has to be fast, no check are perfomed on specified index.
  * Also, no <tt>ConcurrentModificationException</tt> will be thrown (thus, it is higly
  * discouraged to use it unless you know exactly what it is done with the internal array).
  *
  * @return the element at the specified index, as a double
  */
 public final double getDoubleQuick(final int idx) {
   return PrimitiveUtils.toDouble(dataDouble[startIndex + idx]);
 }