Class EnvEntry.Util

  • Enclosing interface:
    EnvEntry

    public static class EnvEntry.Util
    extends Object
    Utility class.
    • Constructor Detail

      • Util

        public Util()
    • Method Detail

      • validateValue

        public static void validateValue​(String type,
                                         String value)
        Validates the specified value string against the indicated type. The recognized types are (from the spec):
        • java.lang.Boolean
        • java.lang.Byte
        • java.lang.Character
        • java.lang.Double
        • java.lang.Float
        • java.lang.Integer
        • java.lang.Long
        • java.lang.Short
        • java.lang.String
        Parameters:
        type - valid type for env-entry-type (from the spec)
        value - value to be checked
        Throws:
        IllegalArgumentException - if the type does not match one of the legal ones
        NumberFormatException - if the value cannot be parsed according to the type