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.StrictPropertiesBuilderProperties.MutableProperties, Properties.PropertiesBuilderorg.refcodes.structure.CanonicalMap.CanonicalMapBuilder, org.refcodes.structure.CanonicalMap.MutableCanonicalMaporg.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.DelimiterPropertyorg.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_propertiesDEFAULT_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, valuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, getBoolean, getBoolean, getByte, getByte, getCharacter, getCharacter, getDouble, getDouble, getFloat, getFloat, getInteger, getInteger, getLong, getLong, getShort, getShortchildrenOf, containsValue, getType, retrieve, retrieveFrom, retrieveTo, toMap, toProperties, toPropertyPathtoInstance, toInstance, toType, toTypedirectories, directories, entries, entries, fromExternalKey, getArray, getArray, hasParentPath, isArray, isArray, isDirectory, isEntry, isRecord, isRootPath, keySet, paths, paths, records, records, toDataStructure, toDataStructure, toExternalKey, toMap, toNormalizedPath, toNormalizedPath, toParentPath, toPath, toRootPathpublic 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 StrictPropertiesget in interface org.refcodes.structure.Keys<String,String>get in class AbstractPropertiesDecorator<Properties>Copyright © 2018. All rights reserved.