Enum DateFormat.BooleanAttribute

    • Enum Constant Detail

      • PARSE_ALLOW_WHITESPACE

        public static final DateFormat.BooleanAttribute PARSE_ALLOW_WHITESPACE
        indicates whitespace tolerance. Also included is trailing dot tolerance.
      • PARSE_ALLOW_NUMERIC

        public static final DateFormat.BooleanAttribute PARSE_ALLOW_NUMERIC
        indicates tolerance of numeric data when String data may be assumed. e.g. YEAR_NAME_FIELD
      • PARSE_MULTIPLE_PATTERNS_FOR_MATCH

        public static final DateFormat.BooleanAttribute PARSE_MULTIPLE_PATTERNS_FOR_MATCH
        indicates tolerance of pattern mismatch between input data and specified format pattern. e.g. accepting "September" for a month pattern of MMM ("Sep")
      • PARSE_PARTIAL_LITERAL_MATCH

        public static final DateFormat.BooleanAttribute PARSE_PARTIAL_LITERAL_MATCH
        indicates tolerance of a partial literal match e.g. accepting "--mon-02-march-2011" for a pattern of "'--: 'EEE-WW-MMMM-yyyy"
      • PARSE_PARTIAL_MATCH

        @Deprecated
        public static final DateFormat.BooleanAttribute PARSE_PARTIAL_MATCH
        Deprecated.
        alias of PARSE_PARTIAL_LITERAL_MATCH
    • Constructor Detail

      • BooleanAttribute

        private BooleanAttribute()
    • Method Detail

      • values

        public static DateFormat.BooleanAttribute[] 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 (DateFormat.BooleanAttribute c : DateFormat.BooleanAttribute.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DateFormat.BooleanAttribute 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