Enum DateFormat.BooleanAttribute

java.lang.Object
java.lang.Enum<DateFormat.BooleanAttribute>
com.ibm.icu.text.DateFormat.BooleanAttribute
All Implemented Interfaces:
Serializable, Comparable<DateFormat.BooleanAttribute>, java.lang.constant.Constable
Enclosing class:
DateFormat

public static enum DateFormat.BooleanAttribute extends Enum<DateFormat.BooleanAttribute>
boolean attributes
  • Enum Constant Details

    • 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
  • Method Details

    • values

      public static DateFormat.BooleanAttribute[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static DateFormat.BooleanAttribute valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null