Send feedback
Class ImmutableSortedMap<K,V> (3.20.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.20.0 keyboard_arrow_down
public abstract class ImmutableSortedMap<K , V > implements Iterable<Map . Entry<K , V >>
Inheritance
Object >
ImmutableSortedMap<K,V>
Type Parameters Name Description K
V
Constructors
ImmutableSortedMap()
public ImmutableSortedMap ()
Methods
containsKey(K key)
public abstract boolean containsKey ( K key )
Parameter Name Description key
K
equals(Object o)
public boolean equals ( Object o )
Parameter Name Description o
Object
Overrides
get(K key)
public abstract V get ( K key )
Parameter Name Description key
K
getComparator()
public abstract Comparator<K> getComparator ()
getMaxKey()
public abstract K getMaxKey ()
getMinKey()
public abstract K getMinKey ()
getPredecessorKey(K key)
public abstract K getPredecessorKey ( K key )
Parameter Name Description key
K
getSuccessorKey(K key)
public abstract K getSuccessorKey ( K key )
Parameter Name Description key
K
hashCode()
Returns Type Description int
Overrides
inOrderTraversal(LLRBNode.NodeVisitor<K,V> visitor)
public abstract void inOrderTraversal ( LLRBNode . NodeVisitor<K , V > visitor )
indexOf(K key)
public abstract int indexOf ( K key )
Parameter Name Description key
K
Returns Type Description int
insert(K key, V value)
public abstract ImmutableSortedMap<K , V > insert ( K key , V value )
Parameters Name Description key
K
value
V
isEmpty()
public abstract boolean isEmpty ()
iterator()
public abstract Iterator<Map . Entry<K , V >> iterator ()
iteratorFrom(K key)
public abstract Iterator<Map . Entry<K , V >> iteratorFrom ( K key )
Parameter Name Description key
K
remove(K key)
public abstract ImmutableSortedMap<K , V > remove ( K key )
Parameter Name Description key
K
reverseIterator()
public abstract Iterator<Map . Entry<K , V >> reverseIterator ()
reverseIteratorFrom(K key)
public abstract Iterator<Map . Entry<K , V >> reverseIteratorFrom ( K key )
Parameter Name Description key
K
size()
public abstract int size ()
Returns Type Description int
toString()
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-19 UTC."],[],[]]