public class PropertiesPrecedenceBuilderComposite extends PropertiesPrecedenceComposite implements PropertiesPrecedence.PropertiesPrecedenceBuilder
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
_properties
DEFAULT_COMMENT
Constructor and Description |
---|
PropertiesPrecedenceBuilderComposite(List<Properties> aProperties)
Creates a
PropertiesPrecedence.PropertiesPrecedenceBuilder composite querying the
provided Properties in the given order. |
PropertiesPrecedenceBuilderComposite(Properties... aProperties)
Creates a
PropertiesPrecedence.PropertiesPrecedenceBuilder composite querying the
provided Properties in the given order. |
Modifier and Type | Method and Description |
---|---|
void |
appendProperties(Properties aProperties)
Appends the provided
Properties to the end of the precedence
list, meaning that the added Properties have lowest priority. |
void |
prependProperties(Properties aProperties)
Prepends the provided
Properties to beginning of the
precedence list, meaning that the added Properties have
highest priority. |
childrenOf, containsKey, get, getDelimiter, isEmpty, keySet, retrieveFrom, retrieveTo, size, toDataStructure, values
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
withAppendProperties, withPrependProperties
childrenOf, containsValue, getDelimiter, getType, retrieve, retrieveFrom, retrieveTo, 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, 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
public PropertiesPrecedenceBuilderComposite(List<Properties> aProperties)
PropertiesPrecedence.PropertiesPrecedenceBuilder
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 PropertiesPrecedenceBuilderComposite(Properties... aProperties)
PropertiesPrecedence.PropertiesPrecedenceBuilder
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 void appendProperties(Properties aProperties)
Properties
to the end of the precedence
list, meaning that the added Properties
have lowest priority.
Them therein contained properties will lose in favor of properties
(with the same key) from preceding Properties
.appendProperties
in interface PropertiesPrecedence.MutablePropertiesPrecedence
aProperties
- The properties to be appended.public void prependProperties(Properties aProperties)
Properties
to beginning of the
precedence list, meaning that the added Properties
have
highest priority. Them therein contained properties will rule out
properties (with the same key) of succeeding Properties
.prependProperties
in interface PropertiesPrecedence.MutablePropertiesPrecedence
aProperties
- The properties to be prepended.Copyright © 2018. All rights reserved.