Package com.github.tonivade.purefun.data
Class ImmutableTreeMap.PImmutableTreeMap<K,V>
java.lang.Object
com.github.tonivade.purefun.data.ImmutableTreeMap.PImmutableTreeMap<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.PImmutableTreeMap<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.PImmutableTreeMap<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ImmutableTreeMap<?, ?> private static final Equal<ImmutableTreeMap.PImmutableTreeMap<?, ?>> private static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePImmutableTreeMap(Comparator<? super K> comparator, Map<? extends K, ? extends V> backend) privatePImmutableTreeMap(SortedMap<K, V> backend) privatePImmutableTreeMap(org.pcollections.PSortedMap<K, V> backend) -
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) private Objectintsize()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
bimap, bimap, ceilingKey, filterKeys, filterValues, floorKey, getOrDefault, headKey, higherKey, isEmpty, lowerKey, mapKeys, mapKeys, mapValues, putIfAbsent, tailKey, toSequencedMap, toSortedMapMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
EMPTY
-
EQUAL
-
backend
-
-
Constructor Details
-
PImmutableTreeMap
-
PImmutableTreeMap
-
PImmutableTreeMap
-
-
Method Details
-
comparator
- Specified by:
comparatorin interfaceImmutableTreeMap<K,V>
-
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>
-
removeAll
- Specified by:
removeAllin interfaceImmutableMap<K,V> - Specified by:
removeAllin 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
-
readResolve
-