Code example for SortedMultiset

Methods: pollFirstEntry

0
  } 
 
  @CollectionFeature.Require(SUPPORTS_REMOVE) 
  @CollectionSize.Require(ZERO) 
  public void testEmptyMultisetPollFirst() { 
    assertNull(sortedMultiset.pollFirstEntry());
  } 
 
  @CollectionSize.Require(ZERO) 
  public void testEmptyMultisetNearby() { 
    for (BoundType type : BoundType.values()) {
      assertNull(sortedMultiset.headMultiset(samples.e0, type).lastEntry());
      assertNull(sortedMultiset.tailMultiset(samples.e0, type).firstEntry());
    } 
  } 
 
  @CollectionSize.Require(ZERO) 
  public void testEmptyMultisetLast() { 
    assertNull(sortedMultiset.lastEntry());
    try {