Code example for NavigableSet

Methods: pollFirstisEmpty

0
  } 
 
  @CollectionFeature.Require(SUPPORTS_REMOVE) 
  @CollectionSize.Require(ONE) 
  public void testSingletonSetPollFirst() { 
    assertEquals(a, navigableSet.pollFirst());
    assertTrue(navigableSet.isEmpty());
  } 
 
  @CollectionSize.Require(ONE) 
  public void testSingletonSetNearby() { 
    assertNull(navigableSet.lower(samples.e0));
    assertEquals(a, navigableSet.floor(samples.e0));
    assertEquals(a, navigableSet.ceiling(samples.e0));
    assertNull(navigableSet.higher(samples.e0));
  } 
 
  @CollectionFeature.Require(SUPPORTS_REMOVE) 
  @CollectionSize.Require(ONE) 
  public void testSingletonSetPollLast() {