Uses of Interface
org.pcollections.PMap
-
-
Uses of PMap in org.pcollections
Subinterfaces of PMap in org.pcollections Modifier and Type Interface Description interfacePSortedMap<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 classHashPMap<K,V>A persistent map from keys to values.classIntTreePMap<V>An efficient persistent map from integer keys to values.classOrderedPMap<K,V>LikePMapbut preserves insertion order.classTreePMap<K,V>An implementation ofPSortedMapbased 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. idsprivate PMap<E,java.lang.Long>OrderedPSet. idsprivate PMap<java.lang.Integer,PSequence<java.util.Map.Entry<K,V>>>HashPMap. intMapprivate PMap<E,java.lang.Integer>MapPBag. mapprivate PMap<E,java.lang.Object>MapPSet. mapMethods 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 intMapPBag. 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)
-