JBBPFieldArrayUShort extends JBBPAbstractArrayField<JBBPFieldUShort> implements JBBPNumericArray { public short[] getArray() { return this.array.clone(); } JBBPFieldArrayUShort(final JBBPNamedFieldInfo name, final short[] array); short[] getArray(); @Override int size(); @Override JBBPFieldUShort getElementAt(final int index); @Override int getAsInt(final int index); @Override long getAsLong(final int index); @Override boolean getAsBool(final int index); @Override Object getValueArrayAsObject(final boolean reverseBits); @Override String getTypeAsString();  }
@Test public void testGetArray() { assertArrayEquals(new short[] {(short) -27834, 23423, 0, -2, 3}, test.getArray()); }