Package com.github.tonivade.purefun.data
Class ImmutableMap.PImmutableMap<K,V>
java.lang.Object
com.github.tonivade.purefun.data.ImmutableMap.PImmutableMap<K,V>
- All Implemented Interfaces:
ImmutableMap<K,,V> Serializable,Iterable<Tuple2<K,V>>
- Enclosing interface:
ImmutableMap<K,V>
public static final class ImmutableMap.PImmutableMap<K,V>
extends Object
implements ImmutableMap<K,V>, Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.tonivade.purefun.data.ImmutableMap
ImmutableMap.Builder<K,V>, ImmutableMap.PImmutableMap<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ImmutableMap<?, ?> private static final Equal<ImmutableMap.PImmutableMap<?, ?>> private static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePImmutableMap(Map<K, V> backend) privatePImmutableMap(org.pcollections.PMap<K, V> backend) -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.tonivade.purefun.data.ImmutableMap
bimap, containsKey, filterKeys, filterValues, forEach, getOrDefault, isEmpty, iterator, mapKeys, mapValues, putIfAbsentMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
EMPTY
-
EQUAL
-
backend
-
-
Constructor Details
-
PImmutableMap
-
PImmutableMap
-
-
Method Details
-
toMap
- Specified by:
toMapin interfaceImmutableMap<K,V>
-
put
- Specified by:
putin interfaceImmutableMap<K,V>
-
putAll
- Specified by:
putAllin interfaceImmutableMap<K,V>
-
remove
- Specified by:
removein interfaceImmutableMap<K,V>
-
removeAll
- Specified by:
removeAllin interfaceImmutableMap<K,V>
-
get
- Specified by:
getin interfaceImmutableMap<K,V>
-
values
- Specified by:
valuesin interfaceImmutableMap<K,V>
-
keys
- Specified by:
keysin interfaceImmutableMap<K,V>
-
entries
- Specified by:
entriesin interfaceImmutableMap<K,V>
-
merge
- Specified by:
mergein interfaceImmutableMap<K,V>
-
size
public int size()- Specified by:
sizein interfaceImmutableMap<K,V>
-
hashCode
public int hashCode() -
equals
-
toString
-
readResolve
-