Enum HttpChecksumProperty.Location

    • Method Detail

      • values

        public static HttpChecksumProperty.Location[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (HttpChecksumProperty.Location c : HttpChecksumProperty.Location.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static HttpChecksumProperty.Location valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • fromString

        public static HttpChecksumProperty.Location fromString​(java.lang.String value)
        Returns a Location enum from String.
        Parameters:
        value - string to map Location enum to.
        Returns:
        Location if location string is valid.
        Throws:
        java.lang.IllegalArgumentException - when given an invalid location string.
        java.lang.NullPointerException - when given a null location string.
      • toNode

        public Node toNode()
        Description copied from interface: ToNode
        Converts a value to a Node.
        Specified by:
        toNode in interface ToNode
        Returns:
        Returns the creates Node.