Code example for NavigableSet

Methods: ceiling

0
  } 
 
  @CollectionSize.Require(SEVERAL) 
  public void testCeilingHole() { 
    resetWithHole(); 
    assertEquals(a, navigableSet.ceiling(a));
    assertEquals(c, navigableSet.ceiling(b));
    assertEquals(c, navigableSet.ceiling(c));
  } 
 
  @CollectionSize.Require(SEVERAL) 
  public void testHigherHole() { 
    resetWithHole(); 
    assertEquals(c, navigableSet.higher(a));
    assertEquals(c, navigableSet.higher(b));
    assertEquals(null, navigableSet.higher(c));
  } 
 
  /* 
   * TODO(cpovirk): make "too small" and "too large" elements available for better navigation