Interface PropertiesAccessorMixin

    • Method Detail

      • asArray

        default String[] asArray​(Object aKey)
        Same as asArray(String, char) using a comma (',') as delimiter.
        Parameters:
        aKey - The key, which's value is to be converted to an array.
        Returns:
        The according array or null if no (or a null) value has been associated to the key.
      • asArray

        default String[] asArray​(Object aKey,
                                 char aDelimiter)
        Treats the value associated with the given key as an array with its elements being the elements of the value separated by the given delimiter char. Let the value associated to the given key be "1, 2, 3, 4, 5", then the corresponding array, when using the comma (',') char as delimiter, will be { "1", "2", "3", "4", "5" }.
        Parameters:
        aKey - The key, which's value is to be converted to an array.
        aDelimiter - The delimiter to be used to identify the elements of the future array.
        Returns:
        The according array or null if no (or a null) value has been associated to the key.
      • asArray

        default String[] asArray​(String aKey)
        Same as asArray(String, char) using a comma (',') as delimiter.
        Parameters:
        aKey - The key, which's value is to be converted to an array.
        Returns:
        The according array or null if no (or a null) value has been associated to the key.
      • asArray

        default String[] asArray​(String aKey,
                                 char aDelimiter)
        Treats the value associated with the given key as an array with its elements being the elements of the value separated by the given delimiter char. Let the value associated to the given key be "1, 2, 3, 4, 5", then the corresponding array, when using the comma (',') char as delimiter, will be { "1", "2", "3", "4", "5" }.
        Parameters:
        aKey - The key, which's value is to be converted to an array.
        aDelimiter - The delimiter to be used to identify the elements of the future array.
        Returns:
        The according array or null if no (or a null) value has been associated to the key.
      • asBooleanArray

        default boolean[] asBooleanArray​(Object aKey,
                                         char aDelimiter)
                                  throws NumberFormatException
        Treats the value associated with the given key as a boolean array with its elements being the elements of the value separated by the given delimiter char. Let the value associated to the given key be "true, false, true, false, true", then the corresponding array, when using the comma (',') char as delimiter, will be { true, false, true, false, true }.
        Parameters:
        aKey - The key, which's value is to be converted to an array.
        aDelimiter - The delimiter to be used to identify the elements of the future array.
        Returns:
        The according array or null if no (or a null) value has been associated to the key.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • asBooleanArray

        default boolean[] asBooleanArray​(String aKey,
                                         char aDelimiter)
                                  throws NumberFormatException
        Treats the value associated with the given key as a boolean array with its elements being the elements of the value separated by the given delimiter char. Let the value associated to the given key be "true, false, true, false, true", then the corresponding array, when using the comma (',') char as delimiter, will be { true, false, true, false, true }.
        Parameters:
        aKey - The key, which's value is to be converted to an array.
        aDelimiter - The delimiter to be used to identify the elements of the future array.
        Returns:
        The according array or null if no (or a null) value has been associated to the key.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • asByteArray

        default byte[] asByteArray​(Object aKey,
                                   char aDelimiter)
                            throws NumberFormatException
        Treats the value associated with the given key as a byte array with its elements being the elements of the value separated by the given delimiter char. Let the value associated to the given key be "true, false, true, false, true", then the corresponding array, when using the comma (',') char as delimiter, will be { true, false, true, false, true }.
        Parameters:
        aKey - The key, which's value is to be converted to an array.
        aDelimiter - The delimiter to be used to identify the elements of the future array.
        Returns:
        The according array or null if no (or a null) value has been associated to the key.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • asByteArray

        default byte[] asByteArray​(String aKey,
                                   char aDelimiter)
                            throws NumberFormatException
        Treats the value associated with the given key as a byte array with its elements being the elements of the value separated by the given delimiter char. Let the value associated to the given key be "true, false, true, false, true", then the corresponding array, when using the comma (',') char as delimiter, will be { true, false, true, false, true }.
        Parameters:
        aKey - The key, which's value is to be converted to an array.
        aDelimiter - The delimiter to be used to identify the elements of the future array.
        Returns:
        The according array or null if no (or a null) value has been associated to the key.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • asCharacterArray

        default char[] asCharacterArray​(Object aKey,
                                        char aDelimiter)
                                 throws NumberFormatException
        Treats the value associated with the given key as a char array with its elements being the elements of the value separated by the given delimiter char. Let the value associated to the given key be "true, false, true, false, true", then the corresponding array, when using the comma (',') char as delimiter, will be { true, false, true, false, true }.
        Parameters:
        aKey - The key, which's value is to be converted to an array.
        aDelimiter - The delimiter to be used to identify the elements of the future array.
        Returns:
        The according array or null if no (or a null) value has been associated to the key.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • asCharacterArray

        default char[] asCharacterArray​(String aKey,
                                        char aDelimiter)
                                 throws NumberFormatException
        Treats the value associated with the given key as a char array with its elements being the elements of the value separated by the given delimiter char. Let the value associated to the given key be "true, false, true, false, true", then the corresponding array, when using the comma (',') char as delimiter, will be { true, false, true, false, true }.
        Parameters:
        aKey - The key, which's value is to be converted to an array.
        aDelimiter - The delimiter to be used to identify the elements of the future array.
        Returns:
        The according array or null if no (or a null) value has been associated to the key.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • asDoubleArray

        default double[] asDoubleArray​(Object aKey,
                                       char aDelimiter)
                                throws NumberFormatException
        Treats the value associated with the given key as a double array with its elements being the elements of the value separated by the given delimiter double. Let the value associated to the given key be "true, false, true, false, true", then the corresponding array, when using the comma (',') double as delimiter, will be { true, false, true, false, true }.
        Parameters:
        aKey - The key, which's value is to be converted to an array.
        aDelimiter - The delimiter to be used to identify the elements of the future array.
        Returns:
        The according array or null if no (or a null) value has been associated to the key.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • asDoubleArray

        default double[] asDoubleArray​(String aKey,
                                       char aDelimiter)
                                throws NumberFormatException
        Treats the value associated with the given key as a double array with its elements being the elements of the value separated by the given delimiter double. Let the value associated to the given key be "true, false, true, false, true", then the corresponding array, when using the comma (',') double as delimiter, will be { true, false, true, false, true }.
        Parameters:
        aKey - The key, which's value is to be converted to an array.
        aDelimiter - The delimiter to be used to identify the elements of the future array.
        Returns:
        The according array or null if no (or a null) value has been associated to the key.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • asFloatArray

        default float[] asFloatArray​(Object aKey,
                                     char aDelimiter)
                              throws NumberFormatException
        Treats the value associated with the given key as a float array with its elements being the elements of the value separated by the given delimiter float. Let the value associated to the given key be "true, false, true, false, true", then the corresponding array, when using the comma (',') float as delimiter, will be { true, false, true, false, true }.
        Parameters:
        aKey - The key, which's value is to be converted to an array.
        aDelimiter - The delimiter to be used to identify the elements of the future array.
        Returns:
        The according array or null if no (or a null) value has been associated to the key.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • asFloatArray

        default float[] asFloatArray​(String aKey,
                                     char aDelimiter)
                              throws NumberFormatException
        Treats the value associated with the given key as a float array with its elements being the elements of the value separated by the given delimiter float. Let the value associated to the given key be "true, false, true, false, true", then the corresponding array, when using the comma (',') float as delimiter, will be { true, false, true, false, true }.
        Parameters:
        aKey - The key, which's value is to be converted to an array.
        aDelimiter - The delimiter to be used to identify the elements of the future array.
        Returns:
        The according array or null if no (or a null) value has been associated to the key.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • asIntegerArray

        default int[] asIntegerArray​(Object aKey,
                                     char aDelimiter)
                              throws NumberFormatException
        Treats the value associated with the given key as a integer array with its elements being the elements of the value separated by the given delimiter char. Let the value associated to the given key be "true, false, true, false, true", then the corresponding array, when using the comma (',') char as delimiter, will be { true, false, true, false, true }.
        Parameters:
        aKey - The key, which's value is to be converted to an array.
        aDelimiter - The delimiter to be used to identify the elements of the future array.
        Returns:
        The according array or null if no (or a null) value has been associated to the key.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • asIntegerArray

        default int[] asIntegerArray​(String aKey,
                                     char aDelimiter)
                              throws NumberFormatException
        Treats the value associated with the given key as a integer array with its elements being the elements of the value separated by the given delimiter char. Let the value associated to the given key be "true, false, true, false, true", then the corresponding array, when using the comma (',') char as delimiter, will be { true, false, true, false, true }.
        Parameters:
        aKey - The key, which's value is to be converted to an array.
        aDelimiter - The delimiter to be used to identify the elements of the future array.
        Returns:
        The according array or null if no (or a null) value has been associated to the key.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • asLongArray

        default long[] asLongArray​(Object aKey,
                                   char aDelimiter)
                            throws NumberFormatException
        Treats the value associated with the given key as a longeger array with its elements being the elements of the value separated by the given delimiter char. Let the value associated to the given key be "true, false, true, false, true", then the corresponding array, when using the comma (',') char as delimiter, will be { true, false, true, false, true }.
        Parameters:
        aKey - The key, which's value is to be converted to an array.
        aDelimiter - The delimiter to be used to identify the elements of the future array.
        Returns:
        The according array or null if no (or a null) value has been associated to the key.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • asLongArray

        default long[] asLongArray​(String aKey,
                                   char aDelimiter)
                            throws NumberFormatException
        Treats the value associated with the given key as a longeger array with its elements being the elements of the value separated by the given delimiter char. Let the value associated to the given key be "true, false, true, false, true", then the corresponding array, when using the comma (',') char as delimiter, will be { true, false, true, false, true }.
        Parameters:
        aKey - The key, which's value is to be converted to an array.
        aDelimiter - The delimiter to be used to identify the elements of the future array.
        Returns:
        The according array or null if no (or a null) value has been associated to the key.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • asShortArray

        default short[] asShortArray​(Object aKey,
                                     char aDelimiter)
                              throws NumberFormatException
        Treats the value associated with the given key as a shorteger array with its elements being the elements of the value separated by the given delimiter char. Let the value associated to the given key be "true, false, true, false, true", then the corresponding array, when using the comma (',') char as delimiter, will be { true, false, true, false, true }.
        Parameters:
        aKey - The key, which's value is to be converted to an array.
        aDelimiter - The delimiter to be used to identify the elements of the future array.
        Returns:
        The according array or null if no (or a null) value has been associated to the key.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • asShortArray

        default short[] asShortArray​(String aKey,
                                     char aDelimiter)
                              throws NumberFormatException
        Treats the value associated with the given key as a shorteger array with its elements being the elements of the value separated by the given delimiter char. Let the value associated to the given key be "true, false, true, false, true", then the corresponding array, when using the comma (',') char as delimiter, will be { true, false, true, false, true }.
        Parameters:
        aKey - The key, which's value is to be converted to an array.
        aDelimiter - The delimiter to be used to identify the elements of the future array.
        Returns:
        The according array or null if no (or a null) value has been associated to the key.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getBoolean

        default Boolean getBoolean​(Object aKey)
                            throws NumberFormatException
        Returns the Boolean value of the property referred to by the key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to retrieve the value.
        Returns:
        The Boolean representation of the key's String value of false if there is no such key.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getBoolean

        default Boolean getBoolean​(String aKey)
                            throws NumberFormatException
        Returns the Boolean value of the property referred to by the key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to retrieve the value.
        Returns:
        The Boolean representation of the key's String value of false if there is no such key.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getBooleanOr

        default Boolean getBooleanOr​(Object aKey,
                                     Boolean aDefaultValue)
                              throws NumberFormatException
        Returns the Boolean value of the property referred to by the key or the provided default value if there is no such value for the given key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to get the element.
        aDefaultValue - The default value in case there is no such value for the given key.
        Returns:
        The Boolean representation of the key's String value of false if there is no such key.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getBooleanOr

        default Boolean getBooleanOr​(String aKey,
                                     Boolean aDefaultValue)
                              throws NumberFormatException
        Returns the Boolean value of the property referred to by the key or the provided default value if there is no such value for the given key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to get the element.
        aDefaultValue - The default value in case there is no such value for the given key.
        Returns:
        The Boolean representation of the key's String value of false if there is no such key.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getByte

        default Byte getByte​(Object aKey)
                      throws NumberFormatException
        Returns the Byte value of the property referred to by the key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to retrieve the value.
        Returns:
        The Byte representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getByte

        default Byte getByte​(String aKey)
                      throws NumberFormatException
        Returns the Byte value of the property referred to by the key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to retrieve the value.
        Returns:
        The Byte representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getByteOr

        default Byte getByteOr​(Object aKey,
                               Byte aDefaultValue)
                        throws NumberFormatException
        Returns the Byte value of the property referred to by the key or the provided default value if there is no such value for the given key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to get the element.
        aDefaultValue - The default value in case there is no such value for the given key.
        Returns:
        The Byte representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getByteOr

        default Byte getByteOr​(String aKey,
                               Byte aDefaultValue)
                        throws NumberFormatException
        Returns the Byte value of the property referred to by the key or the provided default value if there is no such value for the given key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to get the element.
        aDefaultValue - The default value in case there is no such value for the given key.
        Returns:
        The Byte representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getCharacterOr

        default Character getCharacterOr​(Object aKey,
                                         Character aDefaultValue)
                                  throws NumberFormatException
        Returns the Character value of the property referred to by the key or the provided default value if there is no such value for the given key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to get the element.
        aDefaultValue - The default value in case there is no such value for the given key.
        Returns:
        The Character representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getCharacterOr

        default Character getCharacterOr​(String aKey,
                                         Character aDefaultValue)
                                  throws NumberFormatException
        Returns the Character value of the property referred to by the key or the provided default value if there is no such value for the given key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to get the element.
        aDefaultValue - The default value in case there is no such value for the given key.
        Returns:
        The Character representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getDouble

        default Double getDouble​(Object aKey)
                          throws NumberFormatException
        Returns the Double value of the property referred to by the key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to retrieve the value.
        Returns:
        The Double representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getDouble

        default Double getDouble​(String aKey)
                          throws NumberFormatException
        Returns the Double value of the property referred to by the key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to retrieve the value.
        Returns:
        The Double representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getDoubleOr

        default Double getDoubleOr​(Object aKey,
                                   Double aDefaultValue)
                            throws NumberFormatException
        Returns the Double value of the property referred to by the key or the provided default value if there is no such value for the given key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to get the element.
        aDefaultValue - The default value in case there is no such value for the given key.
        Returns:
        The Double representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getDoubleOr

        default Double getDoubleOr​(String aKey,
                                   Double aDefaultValue)
                            throws NumberFormatException
        Returns the Double value of the property referred to by the key or the provided default value if there is no such value for the given key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to get the element.
        aDefaultValue - The default value in case there is no such value for the given key.
        Returns:
        The Double representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getFloat

        default Float getFloat​(Object aKey)
                        throws NumberFormatException
        Returns the Float value of the property referred to by the key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to retrieve the value.
        Returns:
        The Float representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getFloat

        default Float getFloat​(String aKey)
                        throws NumberFormatException
        Returns the Float value of the property referred to by the key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to retrieve the value.
        Returns:
        The Float representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getFloatOr

        default Float getFloatOr​(Object aKey,
                                 Float aDefaultValue)
                          throws NumberFormatException
        Returns the Float value of the property referred to by the key or the provided default value if there is no such value for the given key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to get the element.
        aDefaultValue - The default value in case there is no such value for the given key.
        Returns:
        The Float representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getFloatOr

        default Float getFloatOr​(String aKey,
                                 Float aDefaultValue)
                          throws NumberFormatException
        Returns the Float value of the property referred to by the key or the provided default value if there is no such value for the given key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to get the element.
        aDefaultValue - The default value in case there is no such value for the given key.
        Returns:
        The Float representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getIntegerOr

        default Integer getIntegerOr​(Object aKey,
                                     Integer aDefaultValue)
                              throws NumberFormatException
        Returns the Integer value of the property referred to by the key or the provided default value if there is no such value for the given key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to get the element.
        aDefaultValue - The default value in case there is no such value for the given key.
        Returns:
        The Integer representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getIntegerOr

        default Integer getIntegerOr​(String aKey,
                                     Integer aDefaultValue)
                              throws NumberFormatException
        Returns the Integer value of the property referred to by the key or the provided default value if there is no such value for the given key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to get the element.
        aDefaultValue - The default value in case there is no such value for the given key.
        Returns:
        The Integer representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getLong

        default Long getLong​(Object aKey)
                      throws NumberFormatException
        Returns the Long value of the property referred to by the key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to retrieve the value.
        Returns:
        The Long representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getLong

        default Long getLong​(String aKey)
                      throws NumberFormatException
        Returns the Long value of the property referred to by the key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to retrieve the value.
        Returns:
        The Long representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getLongOr

        default Long getLongOr​(Object aKey,
                               Long aDefaultValue)
                        throws NumberFormatException
        Returns the Long value of the property referred to by the key or the provided default value if there is no such value for the given key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to get the element.
        aDefaultValue - The default value in case there is no such value for the given key.
        Returns:
        The Long representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getLongOr

        default Long getLongOr​(String aKey,
                               Long aDefaultValue)
                        throws NumberFormatException
        Returns the Long value of the property referred to by the key or the provided default value if there is no such value for the given key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to get the element.
        aDefaultValue - The default value in case there is no such value for the given key.
        Returns:
        The Long representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getShort

        default Short getShort​(Object aKey)
                        throws NumberFormatException
        Returns the Short value of the property referred to by the key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to retrieve the value.
        Returns:
        The Short representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getShort

        default Short getShort​(String aKey)
                        throws NumberFormatException
        Returns the Short value of the property referred to by the key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to retrieve the value.
        Returns:
        The Short representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getShortOr

        default Short getShortOr​(Object aKey,
                                 Short aDefaultValue)
                          throws NumberFormatException
        Returns the Short value of the property referred to by the key or the provided default value if there is no such value for the given key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to get the element.
        aDefaultValue - The default value in case there is no such value for the given key.
        Returns:
        The Short representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.
      • getShortOr

        default Short getShortOr​(String aKey,
                                 Short aDefaultValue)
                          throws NumberFormatException
        Returns the Short value of the property referred to by the key or the provided default value if there is no such value for the given key. As property keys and values are of type String, the String value is converted accordingly.
        Parameters:
        aKey - The key for which to get the element.
        aDefaultValue - The default value in case there is no such value for the given key.
        Returns:
        The Short representation of the key's String value.
        Throws:
        NumberFormatException - thrown in case conversion fails.