예제 #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]);
 }
예제 #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]);
 }
예제 #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]);
 }
예제 #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]);
 }
예제 #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]);
 }
예제 #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]);
 }
예제 #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]);
 }
예제 #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]);
 }