Uses of Interface
org.pcollections.PMap
-
-
Uses of PMap in org.pcollections
Subinterfaces of PMap in org.pcollections Modifier and Type Interface Description interface
PSortedMap<K,V>
An immutable, persistent map from keys of type K to values of type V, with keys arranged in sorted order (according to someComparator
), and with various methods to obtain specific mappings or ranges of mappings based on this ordering (such as the least key greater than some instance of type K, or the sub-map with keys between two instances of type K).Classes in org.pcollections that implement PMap Modifier and Type Class Description class
HashPMap<K,V>
A persistent map from keys to values.class
IntTreePMap<V>
An efficient persistent map from integer keys to values.class
OrderedPMap<K,V>
LikePMap
but preserves insertion order.class
TreePMap<K,V>
An implementation ofPSortedMap
based on a self-balancing binary search tree.Fields in org.pcollections declared as PMap Modifier and Type Field Description private PMap<K,java.lang.Long>
OrderedPMap. ids
private PMap<E,java.lang.Long>
OrderedPSet. ids
private PMap<java.lang.Integer,PSequence<java.util.Map.Entry<K,V>>>
HashPMap. intMap
private PMap<E,java.lang.Integer>
MapPBag. map
private PMap<E,java.lang.Object>
MapPSet. map
Methods in org.pcollections that return PMap Modifier and Type Method Description static <K,V>
PMap<K,V>Empty. map()
PMap<K,V>
PMap. minus(java.lang.Object key)
PMap<K,V>
PMap. minusAll(java.util.Collection<?> keys)
static <K,V>
PMap<K,V>Empty. orderedMap()
PMap<K,V>
PMap. plus(K key, V value)
PMap<K,V>
PMap. plusAll(java.util.Map<? extends K,? extends V> map)
Methods in org.pcollections with parameters of type PMap Modifier and Type Method Description static <K,V>
HashPMap<K,V>HashPMap. empty(PMap<java.lang.Integer,PSequence<java.util.Map.Entry<K,V>>> intMap)
static <E> MapPBag<E>
MapPBag. empty(PMap<E,java.lang.Integer> map)
static <E> MapPSet<E>
MapPSet. from(PMap<E,?> map)
static <E> MapPSet<E>
MapPSet. from(PMap<E,?> map, E e)
static <E> MapPSet<E>
MapPSet. from(PMap<E,?> map, java.util.Collection<? extends E> list)
private static int
MapPBag. size(PMap<?,java.lang.Integer> map)
Constructors in org.pcollections with parameters of type PMap Constructor Description HashPMap(PMap<java.lang.Integer,PSequence<java.util.Map.Entry<K,V>>> intMap, int size)
MapPBag(PMap<E,java.lang.Integer> map, int size)
MapPSet(PMap<E,java.lang.Object> map)
OrderedPMap(PMap<K,java.lang.Long> ids, PSortedMap<java.lang.Long,java.util.Map.Entry<K,V>> entries)
OrderedPSet(PMap<E,java.lang.Long> ids, PSortedMap<java.lang.Long,E> elements)
-