Code example for NavigableSet

Methods: pollLast

0
  } 
 
  @CollectionFeature.Require(SUPPORTS_REMOVE) 
  @CollectionSize.Require(ZERO) 
  public void testEmptySetPollLast() { 
    assertNull(navigableSet.pollLast());
  } 
 
  @CollectionSize.Require(ONE) 
  public void testSingletonSetFirst() { 
    assertEquals(a, navigableSet.first());
  } 
 
  @CollectionFeature.Require(SUPPORTS_REMOVE) 
  @CollectionSize.Require(ONE) 
  public void testSingletonSetPollFirst() { 
    assertEquals(a, navigableSet.pollFirst());
    assertTrue(navigableSet.isEmpty());
  } 
 
Connect your IDE to all the code out there  Get Codota for Java