Interface StrictProperties

  • 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, 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

        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

        directories, directories, entries, entries, fromExternalKey, get, get, getArray, getArray, getBoolean, getBoolean, getByte, getByte, getCharacter, getCharacter, getDouble, getDouble, getFloat, getFloat, getIndexes, getIndexes, getInteger, getInteger, getLong, getLong, getRootPath, getShort, getShort, hasIndexed, hasIndexed, hasParentPath, isArray, isArray, isDirectory, isEntry, isIndexed, isIndexed, isPath, isRecord, isRootPath, keySet, paths, paths, queryPaths, records, records, toDataStructure, toDataStructure, toExternalKey, toMap, toNormalizedPath, toNormalizedPath, toParentPath, toPath, toPath
      • Methods inherited from interface org.refcodes.structure.PropertiesAccessorMixin

        containsKey, use, useBoolean, useBoolean, useByte, useByte, useDouble, useDouble, useFloat, useFloat, useInteger, useInteger, useLong, useLong, useShort, useShort
    • Method Detail

      • 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
      • 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.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.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
      • 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
      • 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.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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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,java.lang.String>
        Throws:
        org.refcodes.structure.KeyNotFoundRuntimeException