112113114115116117118119120121122
/** * firstKey returns first key */ public void testFirstKey() { SnapTreeMap map = map5(); assertEquals(one, map.firstKey()); } /** * lastKey returns last key */
916917918919920921922923924925926
assertEquals(three, k); assertFalse(i.hasNext()); sm.clear(); assertTrue(sm.isEmpty()); assertEquals(2, map.size()); assertEquals(four, map.firstKey()); } /** * tailMap returns map with keys in requested range */