Package org.refcodes.structure
Class PathMapBuilderImpl<T>
- java.lang.Object
-
- org.refcodes.structure.PathMapBuilderImpl<T>
-
- Type Parameters:
T- the generic type of the elements to be contained herein.
- All Implemented Interfaces:
java.io.Serializable,java.util.Map<java.lang.String,T>,org.refcodes.mixin.AnnotatorAccessor,org.refcodes.mixin.DelimiterAccessor,org.refcodes.mixin.Dumpable,org.refcodes.mixin.TypeAccessor<T>,Clearable,Containable,Dictionary<java.lang.String,T>,Dictionary.MutableDictionary<java.lang.String,T>,Dictionary.MutableDictionary.DictionaryBuilder<java.lang.String,T,PathMap.PathMapBuilder<T>>,Keys<K,V>,Keys.MutableKeys<K,V>,Keys.MutableValues<K,V>,PathMap<T>,PathMap.MutablePathMap<T>,PathMap.PathMapBuilder<T>
- Direct Known Subclasses:
CanonicalMapBuilderImpl
public class PathMapBuilderImpl<T> extends java.lang.Object implements PathMap.PathMapBuilder<T>, java.io.Serializable
The Class PathMapBuilderImpl.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.AnnotatorAccessor
org.refcodes.mixin.AnnotatorAccessor.AnnotatorBuilder<B extends org.refcodes.mixin.AnnotatorAccessor.AnnotatorBuilder<B>>, org.refcodes.mixin.AnnotatorAccessor.AnnotatorMutator, org.refcodes.mixin.AnnotatorAccessor.AnnotatorProperty
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.DelimiterAccessor
org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B extends org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B>>, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator, org.refcodes.mixin.DelimiterAccessor.DelimiterProperty
-
Nested classes/interfaces inherited from interface org.refcodes.structure.Dictionary
Dictionary.MutableDictionary<K,V>
-
Nested classes/interfaces inherited from interface org.refcodes.structure.Dictionary.MutableDictionary
Dictionary.MutableDictionary.DictionaryBuilder<K,V,B extends Dictionary.MutableDictionary.DictionaryBuilder<K,V,B>>
-
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K extends java.lang.Object,V extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.refcodes.structure.PathMap
PathMap.MutablePathMap<T>, PathMap.PathMapBuilder<T>
-
-
Constructor Summary
Constructors Constructor Description PathMapBuilderImpl(char aDelimiter, java.lang.Class<T> aType)Create aPathMap.PathMapBuilderinstance using the provided path delimiter for the path declarations.PathMapBuilderImpl(java.lang.Class<T> aType)Create an emptyPathMap.PathMapBuilderinstance using the default path delimiter "/" (Delimiter.PATH) for the path declarations.PathMapBuilderImpl(java.lang.Object aObj, char aDelimiter, java.lang.Class<T> aType)Creates aPathMap.PathMapBuilderinstance containing the elements as ofPathMap.MutablePathMap.insert(Object).PathMapBuilderImpl(java.lang.Object aObj, java.lang.Class<T> aType)Create aPathMap.PathMapBuilderinstance containing the elements as ofPathMap.MutablePathMap.insert(Object)using the default path delimiter "/" (Delimiter.PATH) for the path declarations.PathMapBuilderImpl(java.lang.Object aObj, java.lang.String aFromPath, char aDelimiter, java.lang.Class<T> aType)Creates aPathMap.PathMapBuilderinstance containing the elements as ofPathMap.MutablePathMap.insert(Object).PathMapBuilderImpl(java.lang.Object aObj, java.lang.String aFromPath, java.lang.Class<T> aType)Creates aPathMap.PathMapBuilderinstance containing the elements as ofPathMap.MutablePathMap.insert(Object)using the default path delimiter "/" (Delimiter.PATH) for the path declarations.PathMapBuilderImpl(java.lang.String aToPath, java.lang.Object aObj, char aDelimiter, java.lang.Class<T> aType)Creates aPathMap.PathMapBuilderinstance containing the elements as ofPathMap.MutablePathMap.insert(Object).PathMapBuilderImpl(java.lang.String aToPath, java.lang.Object aObj, java.lang.Class<T> aType)Create aPathMap.PathMapBuilderinstance containing the elements as ofPathMap.MutablePathMap.insert(Object)using the default path delimiter "/" (Delimiter.PATH) for the path declarations.PathMapBuilderImpl(java.lang.String aToPath, java.lang.Object aObj, java.lang.String aFromPath, char aDelimiter, java.lang.Class<T> aType)Create aPathMap.PathMapBuilderinstance containing the elements as ofPathMap.MutablePathMap.insert(Object).PathMapBuilderImpl(java.lang.String aToPath, java.lang.Object aObj, java.lang.String aFromPath, java.lang.Class<T> aType)Creates aPathMap.PathMapBuilderinstance containing the elements as ofPathMap.MutablePathMap.insert(Object)using the default path delimiter "/" (Delimiter.PATHfor the path declarations.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears all elements contained in the implementing instance.Tcompute(java.lang.String aPath, java.util.function.BiFunction<? super java.lang.String,? super T,? extends T> remappingFunction)TcomputeIfAbsent(java.lang.String aPath, java.util.function.Function<? super java.lang.String,? extends T> mappingFunction)TcomputeIfPresent(java.lang.String aPath, java.util.function.BiFunction<? super java.lang.String,? super T,? extends T> remappingFunction)booleancontainsKey(java.lang.Object aPath)Tests whether there is an element with the given key.booleancontainsValue(java.lang.Object value)This method is defined for the sake ofMapconformity.protected java.util.Map<java.lang.String,T>createBackingMap()Hook for creating an individual backingMapto be used by thePathMapBuilderImpl.java.util.Set<java.util.Map.Entry<java.lang.String,T>>entrySet()booleanequals(java.lang.Object o)voidforEach(java.util.function.BiConsumer<? super java.lang.String,? super T> action)Tget(java.lang.Object aPath)Retrieves the element assigned to the given key.chargetAnnotator()chargetDelimiter()TgetOrDefault(java.lang.Object aPath, T publicValue)java.lang.Class<T>getType()inthashCode()booleanisEmpty()Tests whether the accumulation is empty or not.java.util.Set<java.lang.String>keySet()Retrieves a collection containing all the keys found in the elements of this collection.Tmerge(java.lang.String aPath, T value, java.util.function.BiFunction<? super T,? super T,? extends T> remappingFunction)Tput(java.lang.String aPath, T value)Puts an element identified by the given key.voidputAll(java.util.Map<? extends java.lang.String,? extends T> m)TputIfAbsent(java.lang.String aPath, T value)Tremove(java.lang.Object aPath)booleanremove(java.lang.Object aPath, java.lang.Object value)Treplace(java.lang.String aPath, T value)booleanreplace(java.lang.String aPath, T oldValue, T newValue)voidreplaceAll(java.util.function.BiFunction<? super java.lang.String,? super T,? extends T> function)PathMap<T>retrieveFrom(java.lang.String aFromPath)PathMap<T>retrieveTo(java.lang.String aToPath)intsize()Returns the number of data elements contained in the collection.java.lang.ObjecttoDataStructure(java.lang.String aFromPath)Similar to thePathMap.toMap(String)method, though in case all the keys of a nestedMapinstance (applicable to the rootMapas well) represent an array (as ofPathMap.getArray( String)), then an array is generated where the index of each value in theMapis represented by the number representation of theMap's key for that value.java.lang.StringtoString()java.util.Collection<T>values()Returns aCollectionview of the values related to the contained keys.-
Methods inherited from interface java.util.Map
entry, of, of, of, of, of, of, of, of, of, of, of, ofEntries
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.refcodes.structure.PathMap
children, children, children, children, children, children, containsKey, containsKey, containsKey, dirs, dirs, dirs, dirs, dirs, dirs, findPaths, fromExternalPath, get, get, get, getArray, getArray, getArray, getArray, getArray, getArrayIndexes, getArrayIndexes, getArrayIndexes, getArrayIndexes, getArrayIndexes, getDirAt, getDirAt, getDirAt, getDirAt, getDirAt, getDirAt, getDirIndexes, getDirIndexes, getDirIndexes, getDirIndexes, getDirIndexes, getRootPath, getValueAt, getValueAt, getValueAt, getValueAt, getValueAt, getValueAt, hasChildren, hasChildren, hasChildren, hasChildren, hasChildren, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasParentPath, hasPath, hasPath, hasPath, hasPath, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, isArray, isArray, isArray, isArray, isArray, isArray, isArrayIndex, isArrayIndex, isArrayIndex, isArrayIndex, isArrayIndex, isArrayIndex, isChild, isChild, isChild, isChild, isDir, isDir, isDir, isDir, isDir, isDirIndex, isDirIndex, isDirIndex, isDirIndex, isDirIndex, isEqualTo, isLeaf, isLeaf, isLeaf, isLeaf, isLeaf, isRootPath, keySet, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastDirIndex, lastDirIndex, lastDirIndex, lastDirIndex, lastDirIndex, lastDirIndex, leaves, leaves, leaves, leaves, leaves, leaves, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextDirIndex, nextDirIndex, nextDirIndex, nextDirIndex, nextDirIndex, nextDirIndex, paths, paths, paths, paths, paths, paths, query, query, query, query, queryBetween, queryBetween, queryBetween, queryBetween, queryBetween, queryFrom, queryFrom, queryFrom, queryFrom, queryFrom, queryPaths, queryPaths, queryPaths, queryPaths, queryPaths, queryTo, queryTo, queryTo, queryTo, queryTo, retrieveBetween, retrieveBetween, retrieveBetween, retrieveBetween, retrieveBetween, retrieveFrom, retrieveFrom, retrieveFrom, retrieveFrom, retrieveTo, retrieveTo, retrieveTo, retrieveTo, sortedKeys, toDataStructure, toExternalPath, toLeaf, toMap, toMap, toNormalizedPath, toParentPath, toPath, toPath, toPath, toPathElements, toPathList, toPathStack, toPropertyPath
-
Methods inherited from interface org.refcodes.structure.PathMap.MutablePathMap
appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendValueTo, appendValueTo, appendValueTo, appendValueTo, appendValueTo, appendValueTo, delete, delete, delete, delete, delete, insert, insert, insertBetween, insertBetween, insertBetween, insertBetween, insertBetween, insertBetween, insertBetween, insertBetween, insertBetween, insertBetween, insertFrom, insertFrom, insertFrom, insertFrom, insertFrom, insertFrom, insertFrom, insertFrom, insertFrom, insertFrom, insertTo, insertTo, insertTo, insertTo, insertTo, insertTo, insertTo, insertTo, insertTo, insertTo, merge, merge, mergeBetween, mergeBetween, mergeBetween, mergeBetween, mergeBetween, mergeBetween, mergeBetween, mergeBetween, mergeBetween, mergeBetween, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeTo, mergeTo, mergeTo, mergeTo, mergeTo, mergeTo, mergeTo, mergeTo, mergeTo, mergeTo, put, put, put, put, putArray, putArray, putArray, putArray, putArray, putArray, putArray, putArray, putArray, putArray, putArray, putArray, putDirAt, putDirAt, putDirAt, putDirAt, putDirAt, putDirAt, putDirAt, putDirAt, putDirAt, putDirAt, putDirAt, putDirAt, putValueAt, putValueAt, putValueAt, putValueAt, putValueAt, remove, remove, remove, removeAll, removeAll, removeAll, removeAll, removeAll, removeDirAt, removeDirAt, removeDirAt, removeDirAt, removeDirAt, removeFrom, removeFrom, removeFrom, removeFrom, removeFrom, removePaths, removePaths, removeValueAt, removeValueAt, removeValueAt, removeValueAt, removeValueAt
-
Methods inherited from interface org.refcodes.structure.PathMap.PathMapBuilder
withInsert, withInsert, withInsertBetween, withInsertBetween, withInsertBetween, withInsertBetween, withInsertBetween, withInsertBetween, withInsertBetween, withInsertBetween, withInsertBetween, withInsertBetween, withInsertFrom, withInsertFrom, withInsertFrom, withInsertFrom, withInsertFrom, withInsertFrom, withInsertFrom, withInsertFrom, withInsertFrom, withInsertFrom, withInsertTo, withInsertTo, withInsertTo, withInsertTo, withInsertTo, withInsertTo, withInsertTo, withInsertTo, withInsertTo, withInsertTo, withMerge, withMerge, withMergeBetween, withMergeBetween, withMergeBetween, withMergeBetween, withMergeBetween, withMergeBetween, withMergeBetween, withMergeBetween, withMergeBetween, withMergeBetween, withMergeFrom, withMergeFrom, withMergeFrom, withMergeFrom, withMergeFrom, withMergeFrom, withMergeFrom, withMergeFrom, withMergeFrom, withMergeFrom, withMergeTo, withMergeTo, withMergeTo, withMergeTo, withMergeTo, withMergeTo, withMergeTo, withMergeTo, withMergeTo, withMergeTo, withPut, withPut, withPut, withPut, withPut, withPutDirAt, withPutDirAt, withPutDirAt, withPutDirAt, withPutDirAt, withPutDirAt, withPutDirAt, withPutDirAt, withPutDirAt, withPutDirAt, withPutDirAt, withPutDirAt, withRemoveFrom, withRemoveFrom, withRemoveFrom, withRemoveFrom, withRemoveFrom, withRemovePaths
-
-
-
-
Constructor Detail
-
PathMapBuilderImpl
public PathMapBuilderImpl(java.lang.Class<T> aType)
Create an emptyPathMap.PathMapBuilderinstance using the default path delimiter "/" (Delimiter.PATH) for the path declarations.- Parameters:
aType- The type of the values being referenced by the paths.
-
PathMapBuilderImpl
public PathMapBuilderImpl(char aDelimiter, java.lang.Class<T> aType)Create aPathMap.PathMapBuilderinstance using the provided path delimiter for the path declarations.- Parameters:
aDelimiter- The path delimiter to be used for the path declarations.aType- The type of the values being referenced by the paths.
-
PathMapBuilderImpl
public PathMapBuilderImpl(java.lang.Object aObj, java.lang.Class<T> aType)Create aPathMap.PathMapBuilderinstance containing the elements as ofPathMap.MutablePathMap.insert(Object)using the default path delimiter "/" (Delimiter.PATH) for the path declarations.- Parameters:
aObj- The object from which the elements are to be added.aType- The type of the values being referenced by the paths.
-
PathMapBuilderImpl
public PathMapBuilderImpl(java.lang.String aToPath, java.lang.Object aObj, java.lang.Class<T> aType)Create aPathMap.PathMapBuilderinstance containing the elements as ofPathMap.MutablePathMap.insert(Object)using the default path delimiter "/" (Delimiter.PATH) for the path declarations.- Parameters:
aToPath- The sub-path where to insert the object's introspected values to.aObj- The object from which the elements are to be added.aType- The type of the values being referenced by the paths.
-
PathMapBuilderImpl
public PathMapBuilderImpl(java.lang.Object aObj, java.lang.String aFromPath, java.lang.Class<T> aType)Creates aPathMap.PathMapBuilderinstance containing the elements as ofPathMap.MutablePathMap.insert(Object)using the default path delimiter "/" (Delimiter.PATH) for the path declarations.- Parameters:
aObj- The object from which the elements are to be added.aFromPath- The path from where to start adding elements of the provided object.aType- The type of the values being referenced by the paths.
-
PathMapBuilderImpl
public PathMapBuilderImpl(java.lang.String aToPath, java.lang.Object aObj, java.lang.String aFromPath, java.lang.Class<T> aType)Creates aPathMap.PathMapBuilderinstance containing the elements as ofPathMap.MutablePathMap.insert(Object)using the default path delimiter "/" (Delimiter.PATHfor the path declarations.- Parameters:
aToPath- The sub-path where to insert the object's introspected values to.aObj- The object from which the elements are to be added.aFromPath- The path from where to start adding elements of the provided object.aType- The type of the values being referenced by the paths.
-
PathMapBuilderImpl
public PathMapBuilderImpl(java.lang.Object aObj, char aDelimiter, java.lang.Class<T> aType)Creates aPathMap.PathMapBuilderinstance containing the elements as ofPathMap.MutablePathMap.insert(Object).- Parameters:
aObj- The object from which the elements are to be added.aDelimiter- The path delimiter to be used for the path declarations.aType- The type of the values being referenced by the paths.
-
PathMapBuilderImpl
public PathMapBuilderImpl(java.lang.String aToPath, java.lang.Object aObj, char aDelimiter, java.lang.Class<T> aType)Creates aPathMap.PathMapBuilderinstance containing the elements as ofPathMap.MutablePathMap.insert(Object).- Parameters:
aToPath- The sub-path where to insert the object's introspected values to.aObj- The object from which the elements are to be added.aDelimiter- The path delimiter to be used for the path declarations.aType- The type of the values being referenced by the paths.
-
PathMapBuilderImpl
public PathMapBuilderImpl(java.lang.Object aObj, java.lang.String aFromPath, char aDelimiter, java.lang.Class<T> aType)Creates aPathMap.PathMapBuilderinstance containing the elements as ofPathMap.MutablePathMap.insert(Object).- Parameters:
aObj- The object from which the elements are to be added.aFromPath- The path from where to start adding elements of the provided object.aDelimiter- The path delimiter to be used for the path declarations.aType- The type of the values being referenced by the paths.
-
PathMapBuilderImpl
public PathMapBuilderImpl(java.lang.String aToPath, java.lang.Object aObj, java.lang.String aFromPath, char aDelimiter, java.lang.Class<T> aType)Create aPathMap.PathMapBuilderinstance containing the elements as ofPathMap.MutablePathMap.insert(Object).- Parameters:
aToPath- The sub-path where to insert the object's introspected values to.aObj- The object from which the elements are to be added.aFromPath- The path from where to start adding elements of the provided object.aDelimiter- The path delimiter to be used for the path declarations.aType- The type of the values being referenced by the paths.
-
-
Method Detail
-
containsKey
public boolean containsKey(java.lang.Object aPath)
Tests whether there is an element with the given key.- Specified by:
containsKeyin interfaceKeys<K,V>- Specified by:
containsKeyin interfacejava.util.Map<java.lang.String,T>- Parameters:
aPath- The key for which to test whether there is an element.- Returns:
- True in case there is an element for the given key.
-
get
public T get(java.lang.Object aPath)
Retrieves the element assigned to the given key.
-
put
public T put(java.lang.String aPath, T value)
Puts an element identified by the given key.- Specified by:
putin interfaceKeys.MutableValues<K,V>- Specified by:
putin interfacejava.util.Map<java.lang.String,T>- Parameters:
aPath- The key which's element is to be put.value- the value- Returns:
- The value being overwritten.
-
remove
public T remove(java.lang.Object aPath)
- Specified by:
removein interfacejava.util.Map<java.lang.String,T>
-
getOrDefault
public T getOrDefault(java.lang.Object aPath, T publicValue)
- Specified by:
getOrDefaultin interfacejava.util.Map<java.lang.String,T>
-
putIfAbsent
public T putIfAbsent(java.lang.String aPath, T value)
- Specified by:
putIfAbsentin interfacejava.util.Map<java.lang.String,T>
-
remove
public boolean remove(java.lang.Object aPath, java.lang.Object value)- Specified by:
removein interfacejava.util.Map<java.lang.String,T>
-
replace
public boolean replace(java.lang.String aPath, T oldValue, T newValue)- Specified by:
replacein interfacejava.util.Map<java.lang.String,T>
-
replace
public T replace(java.lang.String aPath, T value)
- Specified by:
replacein interfacejava.util.Map<java.lang.String,T>
-
computeIfAbsent
public T computeIfAbsent(java.lang.String aPath, java.util.function.Function<? super java.lang.String,? extends T> mappingFunction)
- Specified by:
computeIfAbsentin interfacejava.util.Map<java.lang.String,T>
-
computeIfPresent
public T computeIfPresent(java.lang.String aPath, java.util.function.BiFunction<? super java.lang.String,? super T,? extends T> remappingFunction)
- Specified by:
computeIfPresentin interfacejava.util.Map<java.lang.String,T>
-
compute
public T compute(java.lang.String aPath, java.util.function.BiFunction<? super java.lang.String,? super T,? extends T> remappingFunction)
- Specified by:
computein interfacejava.util.Map<java.lang.String,T>
-
merge
public T merge(java.lang.String aPath, T value, java.util.function.BiFunction<? super T,? super T,? extends T> remappingFunction)
- Specified by:
mergein interfacejava.util.Map<java.lang.String,T>
-
retrieveTo
public PathMap<T> retrieveTo(java.lang.String aToPath)
Extracts a newPathMapfrom thisPathMap's elements with the paths relocated to the provided "to-path". Given we have a value for path "/dog/cat" in thePathMapand we callPathMap.retrieveTo(String)with "/animals", then the resultingPathMapwill contain the path "/animals/dog/cat" for that value.
-
retrieveFrom
public PathMap<T> retrieveFrom(java.lang.String aFromPath)
Extracts a newPathMapfrom the elements of thisPathMapfound below the "from-path". The sub-paths will be the root paths for the newPathMap. Given we have a value for path "/dog/cat" in thePathMapand we callPathMap.retrieveFrom(String)with "/dog", then the resultingPathMapwill contain the path "/cat" for that value.- Specified by:
retrieveFromin interfacePathMap<T>- Parameters:
aFromPath- The path from where to start extracting the paths.- Returns:
- The
PathMapwith the elements below the provided path which are root elements in the newPathMap.
-
getDelimiter
public char getDelimiter()
- Specified by:
getDelimiterin interfaceorg.refcodes.mixin.DelimiterAccessor
-
getAnnotator
public char getAnnotator()
- Specified by:
getAnnotatorin interfaceorg.refcodes.mixin.AnnotatorAccessor
-
getType
public java.lang.Class<T> getType()
- Specified by:
getTypein interfaceorg.refcodes.mixin.TypeAccessor<T>
-
toDataStructure
public java.lang.Object toDataStructure(java.lang.String aFromPath)
Similar to thePathMap.toMap(String)method, though in case all the keys of a nestedMapinstance (applicable to the rootMapas well) represent an array (as ofPathMap.getArray( String)), then an array is generated where the index of each value in theMapis represented by the number representation of theMap's key for that value. The result is a data structure consisting ofMapinstances and arrays.- Specified by:
toDataStructurein interfacePathMap<T>- Parameters:
aFromPath- The path below which thePathMapto be converted into a data structure.- Returns:
- A data structure being a mixture of
Mapinstances and arrays representing the data below the given path.
-
size
public int size()
Returns the number of data elements contained in the collection.- Specified by:
sizein interfaceContainable- Specified by:
sizein interfacejava.util.Map<java.lang.String,T>- Returns:
- An integer representing the number of items stored in the accumulation.
-
isEmpty
public boolean isEmpty()
Tests whether the accumulation is empty or not. Returns true if the accumulation is empty, else false is returned.- Specified by:
isEmptyin interfaceContainable- Specified by:
isEmptyin interfacejava.util.Map<java.lang.String,T>- Returns:
- True if no element is contained in the accumulation - else false is returned.
-
containsValue
public boolean containsValue(java.lang.Object value)
This method is defined for the sake ofMapconformity. Tests whether the provided value has a key assigned.- Specified by:
containsValuein interfaceKeys<K,V>- Specified by:
containsValuein interfacejava.util.Map<java.lang.String,T>- Parameters:
value- The value to test if a key references this value.- Returns:
- True in case the given value is referenced by a key.
-
putAll
public void putAll(java.util.Map<? extends java.lang.String,? extends T> m)
- Specified by:
putAllin interfacejava.util.Map<java.lang.String,T>
-
clear
public void clear()
Clears all elements contained in the implementing instance.
-
keySet
public java.util.Set<java.lang.String> keySet()
Retrieves a collection containing all the keys found in the elements of this collection.
-
values
public java.util.Collection<T> values()
Returns aCollectionview of the values related to the contained keys.
-
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.String,T>> entrySet()
- Specified by:
entrySetin interfacejava.util.Map<java.lang.String,T>
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equalsin interfacejava.util.Map<java.lang.String,T>- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.util.Map<java.lang.String,T>- Overrides:
hashCodein classjava.lang.Object
-
forEach
public void forEach(java.util.function.BiConsumer<? super java.lang.String,? super T> action)
- Specified by:
forEachin interfacejava.util.Map<java.lang.String,T>
-
replaceAll
public void replaceAll(java.util.function.BiFunction<? super java.lang.String,? super T,? extends T> function)
- Specified by:
replaceAllin interfacejava.util.Map<java.lang.String,T>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
createBackingMap
protected java.util.Map<java.lang.String,T> createBackingMap()
Hook for creating an individual backingMapto be used by thePathMapBuilderImpl.- Returns:
- The backing
Mapto be used.
-
-