public class StrictPropertiesDecorator extends AbstractPropertiesDecorator<Properties> implements StrictProperties
StrictPropertiesDecorator
type decorates a Properties
instance with all the getters to throw a KeyNotFoundRuntimeException
instead of returning null in case the key was not found.StrictProperties.MutableStrictProperties, StrictProperties.StrictPropertiesBuilder
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 |
---|
StrictPropertiesDecorator(Properties aProperties)
Decorates the provided
Properties with additional behavior with
all the getters to throw a KeyNotFoundRuntimeException instead of
returning null in case the key was not found . |
Modifier and Type | Method and Description |
---|---|
String |
get(Object aKey) |
childrenOf, containsKey, getDelimiter, isEmpty, keySet, retrieveFrom, retrieveTo, size, toDataStructure, values
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get, getBoolean, getBoolean, getByte, getByte, getCharacter, getCharacter, getDouble, getDouble, getFloat, getFloat, getInteger, getInteger, getLong, getLong, getShort, getShort
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
public StrictPropertiesDecorator(Properties aProperties)
Properties
with additional behavior with
all the getters to throw a KeyNotFoundRuntimeException
instead of
returning null in case the key was not found .
Changes applied to the provided Properties
affect the decorator.aProperties
- The Properties
to be decorated.public String get(Object aKey)
get
in interface StrictProperties
get
in interface org.refcodes.structure.Keys<String,String>
get
in class AbstractPropertiesDecorator<Properties>
Copyright © 2018. All rights reserved.