Code example for NavigableSet

Methods: ceilingfloorhigherlower

0
    assertNull(navigableSet.pollFirst());
  } 
 
  @CollectionSize.Require(ZERO) 
  public void testEmptySetNearby() { 
    assertNull(navigableSet.lower(samples.e0));
    assertNull(navigableSet.floor(samples.e0));
    assertNull(navigableSet.ceiling(samples.e0));
    assertNull(navigableSet.higher(samples.e0));
  } 
 
  @CollectionFeature.Require(SUPPORTS_REMOVE) 
  @CollectionSize.Require(ZERO) 
  public void testEmptySetPollLast() { 
    assertNull(navigableSet.pollLast());
  } 
 
  @CollectionFeature.Require(SUPPORTS_REMOVE) 
  @CollectionSize.Require(ONE) 
  public void testSingletonSetPollFirst() {