Code example for NavigableSet

Methods: higher

0
  } 
 
  @CollectionSize.Require(SEVERAL) 
  public void testHigher() { 
    resetWithHole(); 
    assertEquals(c, navigableSet.higher(a));
    assertEquals(c, navigableSet.higher(b));
    assertEquals(null, navigableSet.higher(c));
  } 
 
  @CollectionSize.Require(SEVERAL) 
  public void testLast() { 
    assertEquals(c, navigableSet.last());
  } 
 
  @CollectionFeature.Require(SUPPORTS_REMOVE) 
  @CollectionSize.Require(SEVERAL) 
  public void testPollLast() { 
    assertEquals(c, navigableSet.pollLast());
    assertEquals( 
Experience pair programming with AI  Get Codota for Java