Class PMap<K,V,SelfType extends PMap<K,V,SelfType>>
- java.lang.Object
-
- org.apache.jena.atlas.lib.persistent.PMap<K,V,SelfType>
-
- Type Parameters:
K- the type of keys in the mapV- the type of values in this mapSelfType- the self-type of implementing classes
- All Implemented Interfaces:
PersistentMap<K,V,SelfType>
public abstract class PMap<K,V,SelfType extends PMap<K,V,SelfType>> extends java.lang.Object implements PersistentMap<K,V,SelfType>
An implementation ofPersistentMapusingMap.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<K,V>asMap()An immutable view of this as aMap.booleancontainsKey(K key)java.util.stream.Stream<java.util.Map.Entry<K,V>>entryStream()java.util.Optional<V>get(K key)SelfTypeminus(K key)SelfTypeplus(K key, V value)-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jena.atlas.lib.persistent.PersistentMap
flatten
-
-
-
-
Method Detail
-
asMap
public java.util.Map<K,V> asMap()
Description copied from interface:PersistentMapAn immutable view of this as aMap.
-
containsKey
public boolean containsKey(K key)
- Specified by:
containsKeyin interfacePersistentMap<K,V,SelfType extends PMap<K,V,SelfType>>- Returns:
- whether this map contains an entry indexed by
key
-
-