Package org.refcodes.configuration
Interface PropertiesPrecedence.MutablePropertiesPrecedence
-
- All Superinterfaces:
org.refcodes.structure.CanonicalMap
,org.refcodes.structure.Containable
,org.refcodes.mixin.DelimiterAccessor
,org.refcodes.structure.Dictionary<java.lang.String,java.lang.String>
,org.refcodes.mixin.Dumpable
,org.refcodes.structure.Keys<java.lang.String,java.lang.String>
,org.refcodes.structure.PathMap<java.lang.String>
,Properties
,org.refcodes.structure.PropertiesAccessorMixin
,PropertiesPrecedence
,org.refcodes.mixin.TypeAccessor<java.lang.String>
- All Known Subinterfaces:
PropertiesPrecedence.PropertiesPrecedenceBuilder
- All Known Implementing Classes:
PropertiesPrecedenceBuilderComposite
- Enclosing interface:
- PropertiesPrecedence
public static interface PropertiesPrecedence.MutablePropertiesPrecedence extends PropertiesPrecedence
The interfacePropertiesPrecedence.MutablePropertiesPrecedence
defines "dirty" methods allowing to modify ("mutate") thePropertiesPrecedence
: Add or removeProperties
inside aPropertiesPrecedence
instance.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.structure.CanonicalMap
org.refcodes.structure.CanonicalMap.CanonicalMapBuilder, org.refcodes.structure.CanonicalMap.MutableCanonicalMap
-
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
org.refcodes.structure.Dictionary.MutableDictionary<K extends java.lang.Object,V extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.refcodes.structure.Keys
org.refcodes.structure.Keys.MutableKeys<K extends java.lang.Object,V extends java.lang.Object>, org.refcodes.structure.Keys.MutableValues<K extends java.lang.Object,V extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.refcodes.structure.PathMap
org.refcodes.structure.PathMap.MutablePathMap<T extends java.lang.Object>, org.refcodes.structure.PathMap.PathMapBuilder<T extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.refcodes.configuration.Properties
Properties.MutableProperties, Properties.PropertiesBuilder
-
Nested classes/interfaces inherited from interface org.refcodes.structure.PropertiesAccessorMixin
org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<T extends java.lang.Object>, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin
-
Nested classes/interfaces inherited from interface org.refcodes.configuration.PropertiesPrecedence
PropertiesPrecedence.MutablePropertiesPrecedence, PropertiesPrecedence.PropertiesPrecedenceBuilder
-
-
Field Summary
-
Fields inherited from interface org.refcodes.configuration.Properties
DEFAULT_COMMENT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
appendProperties(Properties aProperties)
Appends the providedProperties
to the end of the precedence list, meaning that the addedProperties
have lowest priority.void
prependProperties(Properties aProperties)
Prepends the providedProperties
to beginning of the precedence list, meaning that the addedProperties
have highest priority.-
Methods inherited from interface org.refcodes.structure.CanonicalMap
toInstance, toInstance, toType, toType
-
Methods inherited from interface org.refcodes.structure.PathMap
directories, directories, entries, entries, fromExternalKey, get, get, getArray, getArray, getIndexes, getIndexes, getRootPath, hasIndexed, hasIndexed, hasParentPath, isArray, isArray, isDirectory, isEntry, isIndexed, isIndexed, isPath, isRecord, isRootPath, keySet, paths, paths, records, records, toDataStructure, toDataStructure, toExternalKey, toMap, toNormalizedPath, toNormalizedPath, toParentPath, toPath, toPath
-
Methods inherited from interface org.refcodes.configuration.Properties
childrenOf, containsValue, getDelimiter, getIndexed, getIndexed, getType, retrieve, retrieveFrom, retrieveTo, toMap, toProperties, toPropertyPath
-
Methods inherited from interface org.refcodes.structure.PropertiesAccessorMixin
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
-
-
-
-
Method Detail
-
appendProperties
void appendProperties(Properties aProperties)
Appends the providedProperties
to the end of the precedence list, meaning that the addedProperties
have lowest priority. Them therein contained properties will lose in favor of properties (with the same key) from precedingProperties
.- Parameters:
aProperties
- The properties to be appended.
-
prependProperties
void prependProperties(Properties aProperties)
Prepends the providedProperties
to beginning of the precedence list, meaning that the addedProperties
have highest priority. Them therein contained properties will rule out properties (with the same key) of succeedingProperties
.- Parameters:
aProperties
- The properties to be prepended.
-
-