Class ImmutableSortedMap<K,V> (3.6.0)

public abstract class ImmutableSortedMap<K,V> implements Iterable<Map.Entry<K,V>>

Inheritance

Object > ImmutableSortedMap<K,V>

Type Parameters

NameDescription
K
V

Constructors

ImmutableSortedMap()

public ImmutableSortedMap()

Methods

containsKey(K key)

public abstract boolean containsKey(K key)
Parameter
NameDescription
keyK
Returns
TypeDescription
boolean

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

get(K key)

public abstract V get(K key)
Parameter
NameDescription
keyK
Returns
TypeDescription
V

getComparator()

public abstract Comparator<K> getComparator()
Returns
TypeDescription
Comparator<K>

getMaxKey()

public abstract K getMaxKey()
Returns
TypeDescription
K

getMinKey()

public abstract K getMinKey()
Returns
TypeDescription
K

getPredecessorKey(K key)

public abstract K getPredecessorKey(K key)
Parameter
NameDescription
keyK
Returns
TypeDescription
K

getSuccessorKey(K key)

public abstract K getSuccessorKey(K key)
Parameter
NameDescription
keyK
Returns
TypeDescription
K

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

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

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

indexOf(K key)

public abstract int indexOf(K key)
Parameter
NameDescription
keyK
Returns
TypeDescription
int

insert(K key, V value)

public abstract ImmutableSortedMap<K,V> insert(K key, V value)
Parameters
NameDescription
keyK
valueV
Returns
TypeDescription
ImmutableSortedMap<K,V>

isEmpty()

public abstract boolean isEmpty()
Returns
TypeDescription
boolean

iterator()

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

iteratorFrom(K key)

public abstract Iterator<Map.Entry<K,V>> iteratorFrom(K key)
Parameter
NameDescription
keyK
Returns
TypeDescription
Iterator<Entry<K,V>>

remove(K key)

public abstract ImmutableSortedMap<K,V> remove(K key)
Parameter
NameDescription
keyK
Returns
TypeDescription
ImmutableSortedMap<K,V>

reverseIterator()

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

reverseIteratorFrom(K key)

public abstract Iterator<Map.Entry<K,V>> reverseIteratorFrom(K key)
Parameter
NameDescription
keyK
Returns
TypeDescription
Iterator<Entry<K,V>>

size()

public abstract int size()
Returns
TypeDescription
int

toString()

public String toString()
Returns
TypeDescription
String
Overrides