Class ImmutableSortedMap<K,V> (3.28.0)

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
Returns
Type Description
boolean

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
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()
Returns
Type Description
Comparator<K>

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()

public int hashCode()
Returns
Type Description
int
Overrides

inOrderTraversal(LLRBNode.NodeVisitor<K,V> visitor)

public abstract void inOrderTraversal(LLRBNode.NodeVisitor<K,V> visitor)
Parameter
Name Description
visitor NodeVisitor<K,V>

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
Returns
Type Description
ImmutableSortedMap<K,V>

isEmpty()

public abstract boolean isEmpty()
Returns
Type Description
boolean

iterator()

public abstract Iterator<Map.Entry<K,V>> iterator()
Returns
Type Description
Iterator<Entry<K,V>>

iteratorFrom(K key)

public abstract Iterator<Map.Entry<K,V>> iteratorFrom(K key)
Parameter
Name Description
key K
Returns
Type Description
Iterator<Entry<K,V>>

remove(K key)

public abstract ImmutableSortedMap<K,V> remove(K key)
Parameter
Name Description
key K
Returns
Type Description
ImmutableSortedMap<K,V>

reverseIterator()

public abstract Iterator<Map.Entry<K,V>> reverseIterator()
Returns
Type Description
Iterator<Entry<K,V>>

reverseIteratorFrom(K key)

public abstract Iterator<Map.Entry<K,V>> reverseIteratorFrom(K key)
Parameter
Name Description
key K
Returns
Type Description
Iterator<Entry<K,V>>

size()

public abstract int size()
Returns
Type Description
int

toString()

public String toString()
Returns
Type Description
String
Overrides