Package com.github.tonivade.purefun.data
Class ImmutableTreeMap.JavaBasedImmutableTreeMap<K,V>
java.lang.Object
com.github.tonivade.purefun.data.ImmutableTreeMap.JavaBasedImmutableTreeMap<K,V>
- All Implemented Interfaces:
ImmutableMap<K,,V> ImmutableTreeMap<K,,V> Serializable,Iterable<Tuple2<K,V>>
- Enclosing interface:
ImmutableTreeMap<K,V>
public static final class ImmutableTreeMap.JavaBasedImmutableTreeMap<K,V>
extends Object
implements ImmutableTreeMap<K,V>, Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.tonivade.purefun.data.ImmutableMap
ImmutableMap.PImmutableMap<K,V> Nested classes/interfaces inherited from interface com.github.tonivade.purefun.data.ImmutableTreeMap
ImmutableTreeMap.Builder<K extends Comparable<?>,V>, ImmutableTreeMap.JavaBasedImmutableTreeMap<K, V> -
Method Summary
Modifier and TypeMethodDescriptionceilingEntry(K key) ImmutableSet<Tuple2<K, V>> entries()booleanfloorEntry(K key) inthashCode()higherEntry(K key) keys()lowerEntry(K key) putAll(ImmutableMap<? extends K, ? extends V> other) intsize()toMap()toString()values()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.tonivade.purefun.data.ImmutableMap
containsKey, forEach, iteratorMethods inherited from interface com.github.tonivade.purefun.data.ImmutableTreeMap
ceilingKey, filterKeys, filterValues, floorKey, getOrDefault, headKey, higherKey, isEmpty, lowerKey, map, mapKeys, mapValues, putIfAbsent, tailKeyMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
toMap
- Specified by:
toMapin interfaceImmutableMap<K,V>
-
put
- Specified by:
putin interfaceImmutableMap<K,V> - Specified by:
putin interfaceImmutableTreeMap<K,V>
-
putAll
- Specified by:
putAllin interfaceImmutableMap<K,V> - Specified by:
putAllin interfaceImmutableTreeMap<K,V>
-
remove
- Specified by:
removein interfaceImmutableMap<K,V> - Specified by:
removein interfaceImmutableTreeMap<K,V>
-
get
- Specified by:
getin interfaceImmutableMap<K,V>
-
merge
- Specified by:
mergein interfaceImmutableMap<K,V> - Specified by:
mergein interfaceImmutableTreeMap<K,V>
-
headMap
- Specified by:
headMapin interfaceImmutableTreeMap<K,V>
-
tailMap
- Specified by:
tailMapin interfaceImmutableTreeMap<K,V>
-
headEntry
- Specified by:
headEntryin interfaceImmutableTreeMap<K,V>
-
tailEntry
- Specified by:
tailEntryin interfaceImmutableTreeMap<K,V>
-
higherEntry
- Specified by:
higherEntryin interfaceImmutableTreeMap<K,V>
-
lowerEntry
- Specified by:
lowerEntryin interfaceImmutableTreeMap<K,V>
-
floorEntry
- Specified by:
floorEntryin interfaceImmutableTreeMap<K,V>
-
ceilingEntry
- Specified by:
ceilingEntryin interfaceImmutableTreeMap<K,V>
-
values
- Specified by:
valuesin interfaceImmutableMap<K,V>
-
keys
- Specified by:
keysin interfaceImmutableMap<K,V>
-
entries
- Specified by:
entriesin interfaceImmutableMap<K,V>
-
size
public int size()- Specified by:
sizein interfaceImmutableMap<K,V>
-
hashCode
public int hashCode() -
equals
-
toString
-