pollLastEntry

abstract override fun pollLastEntry(): Map.Entry<K, V>?

Removes and returns a key-value mapping associated with the greatest key in this map, or null if the map is empty (optional operation).

Return

the removed last entry of this map, or null if this map is empty

Throws

if the pollLastEntry operation is not supported by this map