Interface StrictProperties

  • All Superinterfaces:
    org.refcodes.structure.CanonicalMap, org.refcodes.structure.Containable, org.refcodes.mixin.DelimiterAccessor, org.refcodes.structure.Dictionary<java.lang.String,T>, org.refcodes.mixin.Dumpable, org.refcodes.structure.Keys<java.lang.String,T>, org.refcodes.structure.PathMap<java.lang.String>, Properties, org.refcodes.structure.PropertiesAccessorMixin, org.refcodes.mixin.TypeAccessor<java.lang.String>
    All Known Subinterfaces:
    StrictProperties.MutableStrictProperties, StrictProperties.StrictPropertiesBuilder
    All Known Implementing Classes:
    StrictPropertiesDecorator


    public interface StrictProperties
    extends Properties
    The StrictProperties extends the Properties with all the getters to throw a KeyNotFoundRuntimeException instead of returning null in case the key was not found.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  StrictProperties.MutableStrictProperties
      The Interface MutableStrictProperties.
      static interface  StrictProperties.StrictPropertiesBuilder
      The Interface StrictPropertiesBuilder.
      • 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.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.mixin.TypeAccessor

        org.refcodes.mixin.TypeAccessor.TypeMutator<T extends java.lang.Object>, org.refcodes.mixin.TypeAccessor.TypeProperty<T extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default java.lang.String get​(java.lang.Enum<?> aKey)
      java.lang.String get​(java.lang.Object aKey)
      default java.lang.Boolean getBoolean​(java.lang.Enum<?> aKey)
      default java.lang.Boolean getBoolean​(java.lang.String aKey)
      default java.lang.Byte getByte​(java.lang.Enum<?> aKey)
      default java.lang.Byte getByte​(java.lang.String aKey)
      default java.lang.Character getCharacter​(java.lang.Enum<?> aKey)
      default java.lang.Character getCharacter​(java.lang.String aKey)
      default java.lang.Double getDouble​(java.lang.Enum<?> aKey)
      default java.lang.Double getDouble​(java.lang.String aKey)
      default java.lang.Float getFloat​(java.lang.Enum<?> aKey)
      default java.lang.Float getFloat​(java.lang.String aKey)
      default java.lang.Integer getInteger​(java.lang.Enum<?> aKey)
      default java.lang.Integer getInteger​(java.lang.String aKey)
      default java.lang.Long getLong​(java.lang.Enum<?> aKey)
      default java.lang.Long getLong​(java.lang.String aKey)
      default java.lang.Short getShort​(java.lang.Enum<?> aKey)
      default java.lang.Short getShort​(java.lang.String aKey)
      • Methods inherited from interface org.refcodes.structure.CanonicalMap

        getBoolean, getBoolean, getByte, getByte, getCharacter, getCharacter, getDouble, getDouble, getFloat, getFloat, getInteger, getInteger, getLong, getLong, getShort, getShort, toInstance, toInstance, toType, toType
      • Methods inherited from interface org.refcodes.structure.Containable

        isEmpty, size
      • Methods inherited from interface org.refcodes.mixin.Dumpable

        toDump, toDump
      • Methods inherited from interface org.refcodes.structure.Keys

        containsKey, keySet, use, values
      • Methods inherited from interface org.refcodes.structure.PathMap

        children, children, children, children, children, containsKey, containsKey, dirs, dirs, dirs, dirs, dirs, fromExternalPath, get, get, getArray, getArray, getArray, getArray, getArrayIndexes, getArrayIndexes, getArrayIndexes, getArrayIndexes, getDirAt, getDirAt, getDirAt, getDirIndexes, getDirIndexes, getDirIndexes, getDirIndexes, getRootPath, getValueAt, getValueAt, getValueAt, getValueAt, getValueAt, hasChildren, hasChildren, hasChildren, hasChildren, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasParentPath, hasPath, hasPath, hasPath, hasValueAt, hasValueAt, hasValueAt, hasValueAt, isArray, isArray, isArray, isArray, isArray, isArrayIndex, isArrayIndex, isArrayIndex, isArrayIndex, isArrayIndex, isChild, isChild, isChild, isDir, isDir, isDir, isDir, isDirIndex, isDirIndex, isDirIndex, isDirIndex, isLeaf, isLeaf, isLeaf, isLeaf, isRootPath, keySet, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastDirIndex, lastDirIndex, lastDirIndex, lastDirIndex, lastDirIndex, leaves, leaves, leaves, leaves, leaves, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextDirIndex, nextDirIndex, nextDirIndex, nextDirIndex, nextDirIndex, paths, paths, paths, paths, paths, queryPaths, toDataStructure, toDataStructure, toExternalPath, toLeaf, toMap, toNormalizedPath, toParentPath, toPath, toPath, toPath, toPathElements
      • Methods inherited from interface org.refcodes.structure.PropertiesAccessorMixin

        asArray, asArray, asArray, asArray, asArray, asArray, asBooleanArray, asBooleanArray, asBooleanArray, asBooleanArray, asBooleanArray, asBooleanArray, asByteArray, asByteArray, asByteArray, asByteArray, asByteArray, asByteArray, asCharacterArray, asCharacterArray, asCharacterArray, asCharacterArray, asCharacterArray, asCharacterArray, asDoubleArray, asDoubleArray, asDoubleArray, asDoubleArray, asDoubleArray, asDoubleArray, asFloatArray, asFloatArray, asFloatArray, asFloatArray, asFloatArray, asFloatArray, asIntegerArray, asIntegerArray, asIntegerArray, asIntegerArray, asIntegerArray, asIntegerArray, asLongArray, asLongArray, asLongArray, asLongArray, asLongArray, asLongArray, asShortArray, asShortArray, asShortArray, asShortArray, asShortArray, asShortArray, containsKey, getBoolean, getByte, getCharacter, getDouble, getFloat, getInteger, getLong, getShort, use, useBoolean, useBoolean, useByte, useByte, useDouble, useDouble, useFloat, useFloat, useInteger, useInteger, useLong, useLong, useShort, useShort
    • Method Detail

      • get

        default java.lang.String get​(java.lang.Enum<?> aKey)
                              throws org.refcodes.structure.KeyNotFoundRuntimeException
        Specified by:
        get in interface org.refcodes.structure.PropertiesAccessorMixin
        Throws:
        org.refcodes.structure.KeyNotFoundRuntimeException
      • get

        java.lang.String get​(java.lang.Object aKey)
                      throws org.refcodes.structure.KeyNotFoundRuntimeException
        Specified by:
        get in interface org.refcodes.structure.Keys<java.lang.String,T extends java.lang.Object>
        Throws:
        org.refcodes.structure.KeyNotFoundRuntimeException
      • getBoolean

        default java.lang.Boolean getBoolean​(java.lang.Enum<?> aKey)
                                      throws java.lang.NumberFormatException,
                                             org.refcodes.structure.KeyNotFoundRuntimeException
        Specified by:
        getBoolean in interface org.refcodes.structure.PropertiesAccessorMixin
        Throws:
        java.lang.NumberFormatException
        org.refcodes.structure.KeyNotFoundRuntimeException
      • getBoolean

        default java.lang.Boolean getBoolean​(java.lang.String aKey)
                                      throws java.lang.NumberFormatException,
                                             org.refcodes.structure.KeyNotFoundRuntimeException
        Specified by:
        getBoolean in interface org.refcodes.structure.PropertiesAccessorMixin
        Throws:
        java.lang.NumberFormatException
        org.refcodes.structure.KeyNotFoundRuntimeException
      • getByte

        default java.lang.Byte getByte​(java.lang.Enum<?> aKey)
                                throws java.lang.NumberFormatException,
                                       org.refcodes.structure.KeyNotFoundRuntimeException
        Specified by:
        getByte in interface org.refcodes.structure.PropertiesAccessorMixin
        Throws:
        java.lang.NumberFormatException
        org.refcodes.structure.KeyNotFoundRuntimeException
      • getByte

        default java.lang.Byte getByte​(java.lang.String aKey)
                                throws java.lang.NumberFormatException,
                                       org.refcodes.structure.KeyNotFoundRuntimeException
        Specified by:
        getByte in interface org.refcodes.structure.PropertiesAccessorMixin
        Throws:
        java.lang.NumberFormatException
        org.refcodes.structure.KeyNotFoundRuntimeException
      • getCharacter

        default java.lang.Character getCharacter​(java.lang.Enum<?> aKey)
                                          throws java.lang.NumberFormatException,
                                                 org.refcodes.structure.KeyNotFoundRuntimeException
        Specified by:
        getCharacter in interface org.refcodes.structure.PropertiesAccessorMixin
        Throws:
        java.lang.NumberFormatException
        org.refcodes.structure.KeyNotFoundRuntimeException
      • getCharacter

        default java.lang.Character getCharacter​(java.lang.String aKey)
                                          throws java.lang.NumberFormatException,
                                                 org.refcodes.structure.KeyNotFoundRuntimeException
        Specified by:
        getCharacter in interface org.refcodes.structure.PropertiesAccessorMixin
        Throws:
        java.lang.NumberFormatException
        org.refcodes.structure.KeyNotFoundRuntimeException
      • getDouble

        default java.lang.Double getDouble​(java.lang.Enum<?> aKey)
                                    throws java.lang.NumberFormatException,
                                           org.refcodes.structure.KeyNotFoundRuntimeException
        Specified by:
        getDouble in interface org.refcodes.structure.PropertiesAccessorMixin
        Throws:
        java.lang.NumberFormatException
        org.refcodes.structure.KeyNotFoundRuntimeException
      • getDouble

        default java.lang.Double getDouble​(java.lang.String aKey)
                                    throws java.lang.NumberFormatException,
                                           org.refcodes.structure.KeyNotFoundRuntimeException
        Specified by:
        getDouble in interface org.refcodes.structure.PropertiesAccessorMixin
        Throws:
        java.lang.NumberFormatException
        org.refcodes.structure.KeyNotFoundRuntimeException
      • getFloat

        default java.lang.Float getFloat​(java.lang.Enum<?> aKey)
                                  throws java.lang.NumberFormatException,
                                         org.refcodes.structure.KeyNotFoundRuntimeException
        Specified by:
        getFloat in interface org.refcodes.structure.PropertiesAccessorMixin
        Throws:
        java.lang.NumberFormatException
        org.refcodes.structure.KeyNotFoundRuntimeException
      • getFloat

        default java.lang.Float getFloat​(java.lang.String aKey)
                                  throws java.lang.NumberFormatException,
                                         org.refcodes.structure.KeyNotFoundRuntimeException
        Specified by:
        getFloat in interface org.refcodes.structure.PropertiesAccessorMixin
        Throws:
        java.lang.NumberFormatException
        org.refcodes.structure.KeyNotFoundRuntimeException
      • getInteger

        default java.lang.Integer getInteger​(java.lang.Enum<?> aKey)
                                      throws java.lang.NumberFormatException,
                                             org.refcodes.structure.KeyNotFoundRuntimeException
        Specified by:
        getInteger in interface org.refcodes.structure.PropertiesAccessorMixin
        Throws:
        java.lang.NumberFormatException
        org.refcodes.structure.KeyNotFoundRuntimeException
      • getInteger

        default java.lang.Integer getInteger​(java.lang.String aKey)
                                      throws java.lang.NumberFormatException,
                                             org.refcodes.structure.KeyNotFoundRuntimeException
        Specified by:
        getInteger in interface org.refcodes.structure.PropertiesAccessorMixin
        Throws:
        java.lang.NumberFormatException
        org.refcodes.structure.KeyNotFoundRuntimeException
      • getLong

        default java.lang.Long getLong​(java.lang.Enum<?> aKey)
                                throws java.lang.NumberFormatException,
                                       org.refcodes.structure.KeyNotFoundRuntimeException
        Specified by:
        getLong in interface org.refcodes.structure.PropertiesAccessorMixin
        Throws:
        java.lang.NumberFormatException
        org.refcodes.structure.KeyNotFoundRuntimeException
      • getLong

        default java.lang.Long getLong​(java.lang.String aKey)
                                throws java.lang.NumberFormatException,
                                       org.refcodes.structure.KeyNotFoundRuntimeException
        Specified by:
        getLong in interface org.refcodes.structure.PropertiesAccessorMixin
        Throws:
        java.lang.NumberFormatException
        org.refcodes.structure.KeyNotFoundRuntimeException
      • getShort

        default java.lang.Short getShort​(java.lang.Enum<?> aKey)
                                  throws java.lang.NumberFormatException,
                                         org.refcodes.structure.KeyNotFoundRuntimeException
        Specified by:
        getShort in interface org.refcodes.structure.PropertiesAccessorMixin
        Throws:
        java.lang.NumberFormatException
        org.refcodes.structure.KeyNotFoundRuntimeException
      • getShort

        default java.lang.Short getShort​(java.lang.String aKey)
                                  throws java.lang.NumberFormatException,
                                         org.refcodes.structure.KeyNotFoundRuntimeException
        Specified by:
        getShort in interface org.refcodes.structure.PropertiesAccessorMixin
        Throws:
        java.lang.NumberFormatException
        org.refcodes.structure.KeyNotFoundRuntimeException