/** * {@link #length} */ private int getLength() { return length.intValue(); }
@Override public int[] get() { int result[] = new int[noteIDs.length]; for (int i = 0; i < noteIDs.length; i++) { result[i] = noteIDs[i].intValue(); } return result; } }
public int getMinLen() { return minLen.intValue(); }
/** * {@link #keyNum} */ public int getKeyNum() { return keyNum.intValue(); }
/** * @see #xPosition */ public int getXPosition() { return xPosition.intValue(); }
/** * @see #yPosition */ public int getYPosition() { return yPosition.intValue(); }
public int getPowerSaveRecoveryTime() { return powerSaveRecoveryTime.intValue(); }
public int getMaxPictures() { return maxPictures.intValue(); }
public int getMaxDataLength() { return maxDataLength.intValue(); }
public int getDigits() { return digits.intValue(); }
private int getNumberFDKs() { return numberFDKs.intValue(); }
@Override public long longValue() { return intValue(); }
@Override public Integer get() { return Integer.valueOf(intValue()); }
@Override public int[] get() { int[] result = new int[array.length]; for (int i = 0; i < result.length; i++) { result[i] = get(i).intValue(); } return result; } }
public byte[] getKeyValue() { return keyValue.buffer(keyLen.intValue()).get(); }
public int[] getCUNumList() { return new UShortArray(cUNumList, count.intValue()).get(); }
public byte[] getData() { return data.buffer(length.intValue()).get(); }
public WfsPINKey[] getPINKeys() { final int numberOfKeys = keys.intValue(); final WfsPINKey[] pinKeyArray = new WfsPINKey[numberOfKeys]; if (numberOfKeys > 0) { final PointerArray pointers = new PointerArray(pinKeys, numberOfKeys); for (int i = 0; i < pinKeyArray.length; i++) { final Pointer p = pointers.get(i); pinKeyArray[i] = new WfsPINKey(p); } } return pinKeyArray; }
@Test public final void test() { Random random = new Random(); USHORT ushort = new USHORT(0); for (int i = 0; i < 100; i++) { int value = random.nextInt(USHORT.MAX_VALUE + 1); ushort.set(value); assertEquals(value, ushort.intValue()); } } }
@Test public void testMaxValue() { USHORT uShort = new USHORT(USHORT.MAX_VALUE); assertEquals(USHORT.MAX_VALUE, uShort.intValue()); }