Properties
, StrictProperties
, org.refcodes.mixin.DelimiterAccessor
, org.refcodes.mixin.Dumpable
, org.refcodes.mixin.TypeAccessor<String>
, org.refcodes.structure.CanonicalMap
, org.refcodes.structure.Containable
, org.refcodes.structure.Dictionary<String,String>
, org.refcodes.structure.Keys<String,String>
, org.refcodes.structure.PathMap<String>
, org.refcodes.structure.PropertiesAccessorMixin
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.org.refcodes.structure.CanonicalMap.CanonicalMapBuilder, org.refcodes.structure.CanonicalMap.MutableCanonicalMap
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.structure.Dictionary.MutableDictionary<K extends Object,V extends Object>
org.refcodes.structure.Keys.MutableKeys<K extends Object,V extends Object>, org.refcodes.structure.Keys.MutableValues<K extends Object,V extends Object>
org.refcodes.structure.PathMap.MutablePathMap<T extends Object>, org.refcodes.structure.PathMap.PathMapBuilder<T extends Object>
Properties.MutableProperties, Properties.PropertiesBuilder
org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<T extends Object>, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin
StrictProperties.MutableStrictProperties, StrictProperties.StrictPropertiesBuilder
DEFAULT_COMMENT
Constructor | 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 | Description |
---|---|---|
String |
get(Object aKey) |
childrenOf, containsKey, getDelimiter, getProperties, isEmpty, keySet, retrieveFrom, retrieveTo, setProperties, size, toDataStructure, values
toInstance, toInstance, toType, toType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
childrenOf, containsValue, getDelimiter, getType, retrieve, retrieveFrom, retrieveTo, toMap, toProperties, toPropertyPath
containsKey, use, useBoolean, useBoolean, useByte, useByte, useDouble, useDouble, useFloat, useFloat, useInteger, useInteger, useLong, useLong, useShort, useShort
get, getBoolean, getBoolean, getByte, getByte, getCharacter, getCharacter, getDouble, getDouble, getFloat, getFloat, getInteger, getInteger, getLong, getLong, getShort, getShort
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 org.refcodes.structure.Keys<String,String>
get
in interface StrictProperties
get
in class AbstractPropertiesDecorator<Properties>
Copyright © 2018. All rights reserved.