Code example for SortedMultiset

Methods: firstEntrytailMultiset

0
 
  @CollectionSize.Require(SEVERAL) 
  public void testCeiling() { 
    resetWithHole(); 
 
    assertEquals(a, sortedMultiset.tailMultiset(a.getElement(), CLOSED).firstEntry());
    assertEquals(c, sortedMultiset.tailMultiset(b.getElement(), CLOSED).firstEntry());
    assertEquals(c, sortedMultiset.tailMultiset(c.getElement(), CLOSED).firstEntry());
  } 
 
  @CollectionSize.Require(SEVERAL) 
  public void testHigher() { 
    resetWithHole(); 
    assertEquals(c, sortedMultiset.tailMultiset(a.getElement(), OPEN).firstEntry());
    assertEquals(c, sortedMultiset.tailMultiset(b.getElement(), OPEN).firstEntry());
    assertEquals(null, sortedMultiset.tailMultiset(c.getElement(), OPEN).firstEntry());
  } 
 
  @CollectionSize.Require(SEVERAL) 
  public void testLast() { 
Connect your IDE to all the code out there  Get Codota for Java