Stay organized with collections
Save and categorize content based on your preferences.
BooleanAttribute
class BooleanAttribute
boolean attributes
Summary
Enum values |
indicates tolerance of numeric data when String data may be assumed.
|
indicates whitespace tolerance.
|
indicates tolerance of pattern mismatch between input data and specified format pattern.
|
indicates tolerance of a partial literal match e.
|
Enum values
PARSE_ALLOW_NUMERIC
enum val PARSE_ALLOW_NUMERIC : DateFormat.BooleanAttribute
indicates tolerance of numeric data when String data may be assumed. e.g. YEAR_NAME_FIELD
PARSE_ALLOW_WHITESPACE
enum val PARSE_ALLOW_WHITESPACE : DateFormat.BooleanAttribute
indicates whitespace tolerance. Also included is trailing dot tolerance.
PARSE_MULTIPLE_PATTERNS_FOR_MATCH
enum val PARSE_MULTIPLE_PATTERNS_FOR_MATCH : DateFormat.BooleanAttribute
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
enum val PARSE_PARTIAL_LITERAL_MATCH : DateFormat.BooleanAttribute
indicates tolerance of a partial literal match e.g. accepting "--mon-02-march-2011" for a pattern of "'--: 'EEE-WW-MMMM-yyyy"
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# DateFormat.BooleanAttribute\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBooleanAttribute\n================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/icu/text/DateFormat.BooleanAttribute \"View this page in Java\") \n\n```\nclass BooleanAttribute\n```\n\n|---|---|---------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\\\u003c[android.icu.text.DateFormat.BooleanAttribute](#)\\\u003e ||\n| | ↳ | [android.icu.text.DateFormat.BooleanAttribute](#) |\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [DateFormat.BooleanAttribute.PARSE_ALLOW_NUMERIC](#ENUM_VALUE:PARSE_ALLOW_NUMERIC), [DateFormat.BooleanAttribute.PARSE_ALLOW_WHITESPACE](#ENUM_VALUE:PARSE_ALLOW_WHITESPACE), [DateFormat.BooleanAttribute.PARSE_MULTIPLE_PATTERNS_FOR_MATCH](#ENUM_VALUE:PARSE_MULTIPLE_PATTERNS_FOR_MATCH), [DateFormat.BooleanAttribute.PARSE_PARTIAL_LITERAL_MATCH](#ENUM_VALUE:PARSE_PARTIAL_LITERAL_MATCH) |----------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------| | [DateFormat.BooleanAttribute.PARSE_ALLOW_NUMERIC](#ENUM_VALUE:PARSE_ALLOW_NUMERIC) | indicates tolerance of numeric data when String data may be assumed. | | [DateFormat.BooleanAttribute.PARSE_ALLOW_WHITESPACE](#ENUM_VALUE:PARSE_ALLOW_WHITESPACE) | indicates whitespace tolerance. | | [DateFormat.BooleanAttribute.PARSE_MULTIPLE_PATTERNS_FOR_MATCH](#ENUM_VALUE:PARSE_MULTIPLE_PATTERNS_FOR_MATCH) | indicates tolerance of pattern mismatch between input data and specified format pattern. | | [DateFormat.BooleanAttribute.PARSE_PARTIAL_LITERAL_MATCH](#ENUM_VALUE:PARSE_PARTIAL_LITERAL_MATCH) | indicates tolerance of a partial literal match e. | |\n\nboolean attributes\n\nSummary\n-------\n\n| Enum values ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [PARSE_ALLOW_NUMERIC](#ENUM_VALUE:PARSE_ALLOW_NUMERIC) indicates tolerance of numeric data when String data may be assumed. |\n| [PARSE_ALLOW_WHITESPACE](#ENUM_VALUE:PARSE_ALLOW_WHITESPACE) indicates whitespace tolerance. |\n| [PARSE_MULTIPLE_PATTERNS_FOR_MATCH](#ENUM_VALUE:PARSE_MULTIPLE_PATTERNS_FOR_MATCH) indicates tolerance of pattern mismatch between input data and specified format pattern. |\n| [PARSE_PARTIAL_LITERAL_MATCH](#ENUM_VALUE:PARSE_PARTIAL_LITERAL_MATCH) indicates tolerance of a partial literal match e. |\n\nEnum values\n-----------\n\n### PARSE_ALLOW_NUMERIC\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val PARSE_ALLOW_NUMERIC : DateFormat.BooleanAttribute\n```\n\nindicates tolerance of numeric data when String data may be assumed. e.g. YEAR_NAME_FIELD \n\n### PARSE_ALLOW_WHITESPACE\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val PARSE_ALLOW_WHITESPACE : DateFormat.BooleanAttribute\n```\n\nindicates whitespace tolerance. Also included is trailing dot tolerance. \n\n### PARSE_MULTIPLE_PATTERNS_FOR_MATCH\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val PARSE_MULTIPLE_PATTERNS_FOR_MATCH : DateFormat.BooleanAttribute\n```\n\nindicates tolerance of pattern mismatch between input data and specified format pattern. e.g. accepting \"September\" for a month pattern of MMM (\"Sep\") \n\n### PARSE_PARTIAL_LITERAL_MATCH\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val PARSE_PARTIAL_LITERAL_MATCH : DateFormat.BooleanAttribute\n```\n\nindicates tolerance of a partial literal match e.g. accepting \"--mon-02-march-2011\" for a pattern of \"'--: 'EEE-WW-MMMM-yyyy\""]]