Code example for NavigableSet

Methods: higher

0
  } 
 
  @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 
   * testing. At that point, we may be able to eliminate the "hole" tests, which would mean that 
   * ContiguousSet's tests would no longer need to suppress them. 
   */ 
  @CollectionSize.Require(SEVERAL) 
  public void testLower() { 
    assertEquals(null, navigableSet.lower(a));
    assertEquals(a, navigableSet.lower(b));
    assertEquals(b, navigableSet.lower(c));
Contextual code suggestions in your IDE  Get Codota for Java