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.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.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>
-
-
Field Summary
-
Fields inherited from interface org.refcodes.structure.PathMap
DEFAULT_DELIMITER
-
-
Constructor Summary
Constructors Constructor Description PathMapBuilderImpl(char aDelimiter, java.lang.Class<T> aType)
Create aPathMap.PathMapBuilder
instance using the provided path delimiter for the path declarations.PathMapBuilderImpl(java.lang.Class<T> aType)
Create an emptyPathMap.PathMapBuilder
instance 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.PathMapBuilder
instance containing the elements as ofPathMap.MutablePathMap.insert(Object)
.PathMapBuilderImpl(java.lang.Object aObj, java.lang.Class<T> aType)
Create aPathMap.PathMapBuilder
instance 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.PathMapBuilder
instance containing the elements as ofPathMap.MutablePathMap.insert(Object)
.PathMapBuilderImpl(java.lang.Object aObj, java.lang.String aFromPath, java.lang.Class<T> aType)
Creates aPathMap.PathMapBuilder
instance 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.PathMapBuilder
instance containing the elements as ofPathMap.MutablePathMap.insert(Object)
.PathMapBuilderImpl(java.lang.String aToPath, java.lang.Object aObj, java.lang.Class<T> aType)
Create aPathMap.PathMapBuilder
instance 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.PathMapBuilder
instance 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.PathMapBuilder
instance containing the elements as ofPathMap.MutablePathMap.insert(Object)
using the default path delimiter "/" (Delimiter.PATH
for the path declarations.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Clears all elements contained in the implementing instance.T
compute(java.lang.String aPath, java.util.function.BiFunction<? super java.lang.String,? super T,? extends T> remappingFunction)
T
computeIfAbsent(java.lang.String aPath, java.util.function.Function<? super java.lang.String,? extends T> mappingFunction)
T
computeIfPresent(java.lang.String aPath, java.util.function.BiFunction<? super java.lang.String,? super T,? extends T> remappingFunction)
boolean
containsKey(java.lang.Object aPath)
Tests whether there is an element with the given key.boolean
containsValue(java.lang.Object value)
This method is defined for the sake ofMap
conformity.protected java.util.Map<java.lang.String,T>
createBackingMap()
Hook for creating an individual backingMap
to be used by thePathMapBuilderImpl
.java.util.Set<java.util.Map.Entry<java.lang.String,T>>
entrySet()
boolean
equals(java.lang.Object o)
void
forEach(java.util.function.BiConsumer<? super java.lang.String,? super T> action)
T
get(java.lang.Object aPath)
Retrieves the element assigned to the given key.char
getDelimiter()
T
getOrDefault(java.lang.Object aPath, T publicValue)
java.lang.Class<T>
getType()
int
hashCode()
boolean
isEmpty()
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.T
merge(java.lang.String aPath, T value, java.util.function.BiFunction<? super T,? super T,? extends T> remappingFunction)
T
put(java.lang.String aPath, T value)
Puts an element identified by the given key.void
putAll(java.util.Map<? extends java.lang.String,? extends T> m)
T
putIfAbsent(java.lang.String aPath, T value)
T
remove(java.lang.Object aPath)
boolean
remove(java.lang.Object aPath, java.lang.Object value)
T
replace(java.lang.String aPath, T value)
boolean
replace(java.lang.String aPath, T oldValue, T newValue)
void
replaceAll(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)
int
size()
Returns the number of data elements contained in the collection.java.lang.Object
toDataStructure(java.lang.String aFromPath)
Similar to thePathMap.toMap(String)
method, though in case all the keys of a nestedMap
instance (applicable to the rootMap
as well) represent an array (as ofPathMap.getArray( String)
), then an array is generated where the index of each value in theMap
is represented by the number representation of theMap
's key for that value.java.lang.String
toString()
java.util.Collection<T>
values()
Returns aCollection
view 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, 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.PathMapBuilder
instance 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.PathMapBuilder
instance 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.PathMapBuilder
instance 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.PathMapBuilder
instance 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.PathMapBuilder
instance 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.PathMapBuilder
instance 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.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.PathMapBuilder
instance 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.PathMapBuilder
instance 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.PathMapBuilder
instance 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.PathMapBuilder
instance 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:
containsKey
in interfaceKeys<K,V>
- Specified by:
containsKey
in 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:
put
in interfaceKeys.MutableValues<K,V>
- Specified by:
put
in 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:
remove
in interfacejava.util.Map<java.lang.String,T>
-
getOrDefault
public T getOrDefault(java.lang.Object aPath, T publicValue)
- Specified by:
getOrDefault
in interfacejava.util.Map<java.lang.String,T>
-
putIfAbsent
public T putIfAbsent(java.lang.String aPath, T value)
- Specified by:
putIfAbsent
in interfacejava.util.Map<java.lang.String,T>
-
remove
public boolean remove(java.lang.Object aPath, java.lang.Object value)
- Specified by:
remove
in interfacejava.util.Map<java.lang.String,T>
-
replace
public boolean replace(java.lang.String aPath, T oldValue, T newValue)
- Specified by:
replace
in interfacejava.util.Map<java.lang.String,T>
-
replace
public T replace(java.lang.String aPath, T value)
- Specified by:
replace
in 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:
computeIfAbsent
in 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:
computeIfPresent
in 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:
compute
in 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:
merge
in interfacejava.util.Map<java.lang.String,T>
-
retrieveTo
public PathMap<T> retrieveTo(java.lang.String aToPath)
Extracts a newPathMap
from thisPathMap
's elements with the paths relocated to the provided "to-path". Given we have a value for path "/dog/cat" in thePathMap
and we callPathMap.retrieveTo(String)
with "/animals", then the resultingPathMap
will contain the path "/animals/dog/cat" for that value.
-
retrieveFrom
public PathMap<T> retrieveFrom(java.lang.String aFromPath)
Extracts a newPathMap
from the elements of thisPathMap
found 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 thePathMap
and we callPathMap.retrieveFrom(String)
with "/dog", then the resultingPathMap
will contain the path "/cat" for that value.- Specified by:
retrieveFrom
in interfacePathMap<T>
- Parameters:
aFromPath
- The path from where to start extracting the paths.- Returns:
- The
PathMap
with the elements below the provided path which are root elements in the newPathMap
.
-
getDelimiter
public char getDelimiter()
- Specified by:
getDelimiter
in interfaceorg.refcodes.mixin.DelimiterAccessor
-
getType
public java.lang.Class<T> getType()
- Specified by:
getType
in 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 nestedMap
instance (applicable to the rootMap
as well) represent an array (as ofPathMap.getArray( String)
), then an array is generated where the index of each value in theMap
is represented by the number representation of theMap
's key for that value. The result is a data structure consisting ofMap
instances and arrays.- Specified by:
toDataStructure
in interfacePathMap<T>
- Parameters:
aFromPath
- The path below which thePathMap
to be converted into a data structure.- Returns:
- A data structure being a mixture of
Map
instances 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:
size
in interfaceContainable
- Specified by:
size
in 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:
isEmpty
in interfaceContainable
- Specified by:
isEmpty
in 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 ofMap
conformity. Tests whether the provided value has a key assigned.- Specified by:
containsValue
in interfaceKeys<K,V>
- Specified by:
containsValue
in 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:
putAll
in 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 aCollection
view of the values related to the contained keys.
-
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.String,T>> entrySet()
- Specified by:
entrySet
in interfacejava.util.Map<java.lang.String,T>
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interfacejava.util.Map<java.lang.String,T>
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Map<java.lang.String,T>
- Overrides:
hashCode
in classjava.lang.Object
-
forEach
public void forEach(java.util.function.BiConsumer<? super java.lang.String,? super T> action)
- Specified by:
forEach
in 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:
replaceAll
in interfacejava.util.Map<java.lang.String,T>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
createBackingMap
protected java.util.Map<java.lang.String,T> createBackingMap()
Hook for creating an individual backingMap
to be used by thePathMapBuilderImpl
.- Returns:
- The backing
Map
to be used.
-
-