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));
  } 
 
  @CollectionSize.Require(ZERO) 
  public void testEmptySetLast() { 
    try { 
      navigableSet.last();
      fail(); 
    } catch (NoSuchElementException e) {
    } 
  } 
 
Connect your IDE to all the code out there  Get Codota for Java