Code example for NavigableMap

Methods: pollLastEntry

0
  }   
 
  @MapFeature.Require(SUPPORTS_REMOVE) 
  @CollectionSize.Require(ZERO) 
  public void testEmptyMapPollLast() { 
    assertNull(navigableMap.pollLastEntry());
  } 
 
  @CollectionSize.Require(ONE) 
  public void testSingletonMapFirst() { 
    assertEquals(a, navigableMap.firstEntry());
    assertEquals(a.getKey(), navigableMap.firstKey());
  } 
 
  @MapFeature.Require(SUPPORTS_REMOVE) 
  @CollectionSize.Require(ONE) 
  public void testSingletonMapPollFirst() { 
    assertEquals(a, navigableMap.pollFirstEntry());
    assertTrue(navigableMap.isEmpty());
  }