public class PropertiesPrecedenceComposite extends Object implements PropertiesPrecedence
Properties
instances) by querying all the herein contained
Properties
instances in the order of them being added. Queried
properties of the first Properties
instance containing them are
returned. Properties
instances before have a higher precedence than
the instances added next.PropertiesPrecedence.MutablePropertiesPrecedence, PropertiesPrecedence.PropertiesPrecedenceBuilder
Properties.MutableProperties, Properties.PropertiesBuilder
org.refcodes.structure.CanonicalMap.CanonicalMapBuilder, org.refcodes.structure.CanonicalMap.MutableCanonicalMap
org.refcodes.structure.PathMap.MutablePathMap<T>, org.refcodes.structure.PathMap.PathMapBuilder<T>
org.refcodes.structure.Dictionary.MutableDictionary<K,V>
org.refcodes.structure.Keys.MutableKeys<K,V>, org.refcodes.structure.Keys.MutableValues<K,V>
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>
org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<T>, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin
Modifier and Type | Field and Description |
---|---|
protected List<Properties> |
_properties |
DEFAULT_COMMENT
Constructor and Description |
---|
PropertiesPrecedenceComposite(List<Properties> aProperties)
Creates a
PropertiesPrecedence composite querying the provided
Properties in the given order. |
PropertiesPrecedenceComposite(Properties... aProperties)
Creates a
PropertiesPrecedence composite querying the provided
Properties in the given order. |
Modifier and Type | Method and Description |
---|---|
Properties |
childrenOf(String aParentPath) |
boolean |
containsKey(Object aKey) |
String |
get(Object aKey) |
char |
getDelimiter()
Returns the default path delimiter as of
Delimiter.PATH . |
boolean |
isEmpty() |
Set<String> |
keySet() |
Properties |
retrieveFrom(String aFromPath) |
Properties |
retrieveTo(String aToPath) |
int |
size() |
Object |
toDataStructure(String aFromPath) |
Collection<String> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
containsValue, getType, retrieve, toMap, toProperties, toPropertyPath
toInstance, toInstance, toType, toType
directories, directories, entries, entries, fromExternalKey, getArray, getArray, getRootPath, hasParentPath, isArray, isArray, isDirectory, isEntry, isRecord, isRootPath, keySet, paths, paths, records, records, toDataStructure, toExternalKey, toMap, toNormalizedPath, toNormalizedPath, toParentPath, toPath
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
protected List<Properties> _properties
public PropertiesPrecedenceComposite(Properties... aProperties)
PropertiesPrecedence
composite querying the provided
Properties
in the given order. Queried properties of the first
Properties
instance containing them are returned.
Properties
before have a higher precedence over
Properties
provided next.aProperties
- The Properties
to be queried in the provided
order.public PropertiesPrecedenceComposite(List<Properties> aProperties)
PropertiesPrecedence
composite querying the provided
Properties
in the given order. Queried properties of the first
Properties
instance containing them are returned.
Properties
before have a higher precedence over
Properties
provided next.aProperties
- The Properties
to be queried in the provided
order.public Object toDataStructure(String aFromPath)
toDataStructure
in interface org.refcodes.structure.PathMap<String>
public boolean containsKey(Object aKey)
public Collection<String> values()
public int size()
size
in interface org.refcodes.structure.Containable
public boolean isEmpty()
isEmpty
in interface org.refcodes.structure.Containable
public char getDelimiter()
Delimiter.PATH
.
getDelimiter
in interface Properties
getDelimiter
in interface org.refcodes.mixin.DelimiterAccessor
public Properties retrieveFrom(String aFromPath)
retrieveFrom
in interface Properties
retrieveFrom
in interface org.refcodes.structure.CanonicalMap
retrieveFrom
in interface org.refcodes.structure.PathMap<String>
public Properties retrieveTo(String aToPath)
retrieveTo
in interface Properties
retrieveTo
in interface org.refcodes.structure.CanonicalMap
retrieveTo
in interface org.refcodes.structure.PathMap<String>
public Properties childrenOf(String aParentPath)
childrenOf
in interface Properties
childrenOf
in interface org.refcodes.structure.CanonicalMap
childrenOf
in interface org.refcodes.structure.PathMap<String>
Copyright © 2018. All rights reserved.