Some or all of the information on this page might not apply to Trusted Cloud by S3NS.
Class ImmutableSortedMap<K,V> (3.28.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 3.28.0keyboard_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
Returns
Type
Description
V
getComparator()
public abstract Comparator<K> getComparator ()
getMaxKey()
public abstract K getMaxKey ()
Returns
Type
Description
K
getMinKey()
public abstract K getMinKey ()
Returns
Type
Description
K
getPredecessorKey(K key)
public abstract K getPredecessorKey ( K key )
Parameter
Name
Description
key
K
Returns
Type
Description
K
getSuccessorKey(K key)
public abstract K getSuccessorKey ( K key )
Parameter
Name
Description
key
K
Returns
Type
Description
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()
Returns
Type
Description
String
Overrides
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 2025-07-30 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-30 UTC."],[],[]]