/** * 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]); }
/** * 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]); }
/** * 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]); }
/** * 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]); }
/** * 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]); }
/** * 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]); }
/** * 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]); }
/** * 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]); }