Code example for SortedMultiset

Methods: pollFirstEntryisEmpty

0
  } 
 
  @CollectionFeature.Require(SUPPORTS_REMOVE) 
  @CollectionSize.Require(ONE) 
  public void testSingletonMultisetPollFirst() { 
    assertEquals(a, sortedMultiset.pollFirstEntry());
    assertTrue(sortedMultiset.isEmpty());
  } 
 
  @CollectionSize.Require(ONE) 
  public void testSingletonMultisetNearby() { 
    assertNull(sortedMultiset.headMultiset(samples.e0, OPEN).lastEntry());
    assertNull(sortedMultiset.tailMultiset(samples.e0, OPEN).lastEntry());
 
    assertEquals(a, sortedMultiset.headMultiset(samples.e0, CLOSED).lastEntry());
    assertEquals(a, sortedMultiset.tailMultiset(samples.e0, CLOSED).firstEntry());
  } 
 
  @CollectionSize.Require(ONE) 
  public void testSingletonMultisetLast() { 
Connect your IDE to all the code out there  Get Codota for Java