ShortSet implements Serializable { public short get(int i) { return data[i]; } ShortSet(int capacity); void add(short key); void addAll(ShortSet that); void addKnownAbsent(short key); void clear(); boolean contains(short key); void copyDataFrom(ShortSet that); @Override boolean equals(Object obj); short get(int i); @Override int hashCode(); void remove(short key); void removeKnownPresent(int key); int size(); @Override String toString(); String toString(CoordinateSystem coords);  }
@Test public void testGet() { set.add((short)4); set.add((short)5); set.add((short)9); assertEquals(4, set.get((short)0)); assertEquals(5, set.get((short)1)); assertEquals(9, set.get((short)2)); set.remove((short)4); assertEquals(9, set.get((short)0)); }