Пример #1
0
 @Test
 public void testKeysSortedByValue() {
   OpenShortDoubleHashMap map = new OpenShortDoubleHashMap();
   map.put((short) 11, (double) 22);
   map.put((short) 12, (double) 23);
   map.put((short) 13, (double) 24);
   map.put((short) 14, (double) 25);
   map.removeKey((short) 13);
   ShortArrayList keys = new ShortArrayList();
   map.keysSortedByValue(keys);
   short[] keysArray = keys.toArray(new short[keys.size()]);
   assertArrayEquals(new short[] {11, 12, 14}, keysArray);
 }