USHORT extends NumberType<Integer> { @Override public int intValue() { return Bits.getShort(getBytes()) & 0xffff; } USHORT();  USHORT(Buffer aBuffer);  USHORT(final int value);  USHORT(Pointer p); @Override int intValue(); @Override long longValue(); void set(USHORT value); @Override void set(Integer value); void set(int value); @Override Integer get(); @Override String toString(); static final int SIZE; static final int MIN_VALUE; static final int MAX_VALUE; }
@Test public void testMaxValue() { USHORT uShort = new USHORT(USHORT.MAX_VALUE); assertEquals(USHORT.MAX_VALUE, uShort.intValue()); }