Uses of Interface
org.pcollections.PMap
-
Uses of PMap in org.pcollections
Subinterfaces of PMap in org.pcollectionsModifier and TypeInterfaceDescriptioninterface
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 PMapModifier and TypeClassDescriptionfinal class
HashPMap<K,
V> A persistent map from keys to values.final class
IntTreePMap<V>
An efficient persistent map from integer keys to values.class
OrderedPMap<K,
V> LikePMap
but preserves insertion order.final class
TreePMap<K,
V> An implementation ofPSortedMap
based on a self-balancing binary search tree.Fields in org.pcollections declared as PMapModifier and TypeFieldDescriptionOrderedPMap.ids
OrderedPSet.ids
HashPMap.intMap
MapPBag.map
MapPSet.map
Methods in org.pcollections that return PMapModifier and TypeMethodDescriptionstatic <K,
V> PMap <K, V> Empty.map()
PMap.minusAll
(Collection<?> keys) static <K,
V> PMap <K, V> Empty.orderedMap()
Methods in org.pcollections with parameters of type PMapModifier and TypeMethodDescriptionstatic <K,
V> HashPMap <K, V> static <E> MapPBag
<E> static <E> MapPSet
<E> static <E> MapPSet
<E> static <E> MapPSet
<E> MapPSet.from
(PMap<E, ?> map, Collection<? extends E> list) private static int
Constructors in org.pcollections with parameters of type PMapModifierConstructorDescriptionprivate
private
private
private
OrderedPMap
(PMap<K, Long> ids, PSortedMap<Long, Map.Entry<K, V>> entries) private
OrderedPSet
(PMap<E, Long> ids, PSortedMap<Long, E> elements)