Serializable
, Cloneable
, Map<String,String>
, org.refcodes.mixin.DelimiterAccessor
, org.refcodes.mixin.Dumpable
, org.refcodes.mixin.TypeAccessor<String>
, CanonicalMap
, CanonicalMap.CanonicalMapBuilder
, CanonicalMap.MutableCanonicalMap
, Clearable
, Containable
, Dictionary<String,String>
, Dictionary.MutableDictionary<String,String>
, Dictionary.MutableDictionary.DictionaryBuilder<String,String,PathMap.PathMapBuilder<String>>
, Keys<String,String>
, Keys.MutableKeys<String,String>
, Keys.MutableValues<String,String>
, PathMap<String>
, PathMap.MutablePathMap<String>
, PathMap.PathMapBuilder<String>
, PropertiesAccessorMixin
, PropertiesAccessorMixin.PropertiesBuilderMixin<CanonicalMap.CanonicalMapBuilder>
, PropertiesAccessorMixin.PropertiesMixin
, PropertiesAccessorMixin.PropertiesMutatorMixin
public class CanonicalMapBuilderImpl extends PathMapBuilderImpl<String> implements CanonicalMap.CanonicalMapBuilder
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
CanonicalMap.CanonicalMapBuilder, CanonicalMap.MutableCanonicalMap
org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B extends org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B>>, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator, org.refcodes.mixin.DelimiterAccessor.DelimiterProperty
Dictionary.MutableDictionary<K,V>
Dictionary.MutableDictionary.DictionaryBuilder<K,V,B extends Dictionary.MutableDictionary.DictionaryBuilder<K,V,B>>
Map.Entry<K extends Object,V extends Object>
PathMap.MutablePathMap<T>, PathMap.PathMapBuilder<T>
PropertiesAccessorMixin.PropertiesBuilderMixin<T>, PropertiesAccessorMixin.PropertiesMixin, PropertiesAccessorMixin.PropertiesMutatorMixin
DEFAULT_COMMENT
Constructor | Description |
---|---|
CanonicalMapBuilderImpl() |
Instantiates a new canonical map builder impl.
|
CanonicalMapBuilderImpl(Object aObj) |
Instantiates a new canonical map builder impl.
|
CanonicalMapBuilderImpl(Map<?,?> aProperties) |
Instantiates a new canonical map builder impl.
|
Modifier and Type | Method | 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) |
equals, hashCode, toString
retrieve, toInstance, toInstance, toType, toType
withInsert, withInsert, withInsert, withInsert, withInsertFrom, withInsertFrom, withInsertTo, withInsertTo, withPut, withPut, withPutBoolean, withPutByte, withPutDouble, withPutFloat, withPutInteger, withPutLong, withPutShort, withRemoveFrom
containsValue, delete, insert, insert, insertFrom, insertTo, put, putAll, putAll, putAll, toDump, toSourceCode, toSourceCode
isEmpty, size
clear, clone, containsValue, entrySet, forEach, isEmpty, keySet, putAll, replaceAll, size, values
clear, compute, computeIfAbsent, computeIfPresent, containsKey, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
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
insert, insert, insert, insert, insertFrom, insertFrom, insertTo, insertTo, put, putArray, putArray, removeAll
withInsert, withInsert, withInsertFrom, withInsertTo
compute, computeIfAbsent, computeIfPresent, containsKey, get, getDelimiter, getOrDefault, getType, merge, put, putIfAbsent, remove, remove, replace, replace, toDataStructure
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
withPut
put, put, putBoolean, putBoolean, putByte, putByte, putDouble, putDouble, putFloat, putFloat, putInteger, putInteger, putLong, putLong, putShort, putShort
public CanonicalMapBuilderImpl()
public CanonicalMapBuilderImpl(Object aObj)
aObj
- the objpublic CanonicalMapBuilderImpl(Map<?,?> aProperties)
aProperties
- the 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.