public class CanonicalMapBuilderImpl extends PathMapBuilderImpl<String> implements CanonicalMap.CanonicalMapBuilder
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
CanonicalMap.CanonicalMapBuilder, CanonicalMap.MutableCanonicalMap
PathMap.MutablePathMap<T>, PathMap.PathMapBuilder<T>
org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B extends org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B>>, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator, org.refcodes.mixin.DelimiterAccessor.DelimiterProperty
org.refcodes.mixin.TypeAccessor.TypeMutator<T>, org.refcodes.mixin.TypeAccessor.TypeProperty<T>
Dictionary.MutableDictionary.DictionaryBuilder<K,V,B extends Dictionary.MutableDictionary.DictionaryBuilder<K,V,B>>
Dictionary.MutableDictionary<K,V>
PropertiesAccessorMixin.PropertiesBuilderMixin<T>, PropertiesAccessorMixin.PropertiesMixin, PropertiesAccessorMixin.PropertiesMutatorMixin
DEFAULT_COMMENT
Constructor and Description |
---|
CanonicalMapBuilderImpl()
Instantiates a new canonical map builder impl.
|
CanonicalMapBuilderImpl(Map<?,?> aProperties)
Instantiates a new canonical map builder impl.
|
CanonicalMapBuilderImpl(Object aObj)
Instantiates a new canonical map builder impl.
|
Modifier and Type | Method and Description |
---|---|
CanonicalMap |
childrenOf(String aParentPath)
Gets the children elements of the provided parent's path, excluding the
parent's path.
|
CanonicalMap |
retrieveFrom(String aFromPath)
|
CanonicalMap |
retrieveTo(String aToPath)
|
compute, computeIfAbsent, computeIfPresent, containsKey, get, getDelimiter, getOrDefault, getType, merge, put, putIfAbsent, remove, remove, replace, replace, toDataStructure
clear, clone, containsValue, entrySet, forEach, isEmpty, keySet, putAll, replaceAll, size, values
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
withInsert, withInsert, withInsert, withInsert, withInsertFrom, withInsertFrom, withInsertTo, withInsertTo, withPut, withPut, withPutBoolean, withPutByte, withPutDouble, withPutFloat, withPutInteger, withPutLong, withPutShort, withRemoveFrom
withInsert, withInsert, withInsertFrom, withInsertTo
containsValue, delete, insert, insert, insertFrom, insertTo, put, putAll, putAll, putAll, toDump, toSourceCode, toSourceCode
retrieve, toInstance, toInstance, toType, toType
insert, insert, insert, insert, insertFrom, insertFrom, insertTo, insertTo, put, putArray, putArray, removeAll
directories, directories, entries, entries, fromExternalKey, getArray, getArray, getRootPath, hasParentPath, isArray, isArray, isDirectory, isEntry, isRecord, isRootPath, keySet, paths, paths, records, records, toDataStructure, toDataStructure, toExternalKey, toMap, toMap, toNormalizedPath, toNormalizedPath, toParentPath, toPath
isEmpty, size
clear, compute, computeIfAbsent, computeIfPresent, containsKey, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
withPut
containsKey, get, getBoolean, getBoolean, getByte, getByte, getCharacter, getCharacter, getDouble, getDouble, getFloat, getFloat, getInteger, getInteger, getLong, getLong, getShort, getShort, use, useBoolean, useBoolean, useByte, useByte, useDouble, useDouble, useFloat, useFloat, useInteger, useInteger, useLong, useLong, useShort, useShort
put, put, putBoolean, putBoolean, putByte, putByte, putDouble, putDouble, putFloat, putFloat, putInteger, putInteger, putLong, putLong, putShort, putShort
public CanonicalMapBuilderImpl()
public CanonicalMapBuilderImpl(Object aObj)
aObj
- the a objpublic CanonicalMapBuilderImpl(Map<?,?> aProperties)
aProperties
- the a propertiespublic CanonicalMap retrieveFrom(String aFromPath)
PathMap
from the elements of this PathMap
found below the "from-path". The sub-paths will be the root paths for the
new PathMap
.
Given we have a value for path "/dog/cat" in the PathMap
and we
call PathMap.retrieveFrom(String)
with "/dog", then the resulting
PathMap
will contain the path "/cat" for that value.retrieveFrom
in interface CanonicalMap
retrieveFrom
in interface PathMap<String>
retrieveFrom
in class PathMapBuilderImpl<String>
aFromPath
- The path from where to start extracting the paths.PathMap
with the elements below the provided path
which are root elements in the new PathMap
.public CanonicalMap retrieveTo(String aToPath)
PathMap
from this PathMap
's elements with
the paths relocated to the provided "to-path".
Given we have a value for path "/dog/cat" in the PathMap
and we
call PathMap.retrieveTo(String)
with "/animals", then the resulting
PathMap
will contain the path "/animals/dog/cat" for that value.retrieveTo
in interface CanonicalMap
retrieveTo
in interface PathMap<String>
retrieveTo
in class PathMapBuilderImpl<String>
aToPath
- The path where to relocate the paths of this
PathMap
to.PathMap
with the elements from the provided
PathMap
with accordingly relocated paths.public CanonicalMap childrenOf(String aParentPath)
childrenOf
in interface CanonicalMap
childrenOf
in interface PathMap<String>
childrenOf
in class PathMapBuilderImpl<String>
aParentPath
- The path from where to retrieve the children.Copyright © 2018. All rights reserved.