Stay organized with collections
Save and categorize content based on your preferences.
RangeIdentityResult
class RangeIdentityResult
Used in the result class FormattedNumberRange to indicate to the user whether the numbers formatted in the range were equal or not, and whether or not the identity fallback was applied.
Summary
Enum values |
Used to indicate that the two numbers in the range were equal, but only after rounding rules were applied.
|
Used to indicate that the two numbers in the range were equal, even before any rounding rules were applied.
|
Used to indicate that the two numbers in the range were not equal, even after rounding rules were applied.
|
Enum values
EQUAL_AFTER_ROUNDING
enum val EQUAL_AFTER_ROUNDING : NumberRangeFormatter.RangeIdentityResult
Used to indicate that the two numbers in the range were equal, but only after rounding rules were applied.
EQUAL_BEFORE_ROUNDING
enum val EQUAL_BEFORE_ROUNDING : NumberRangeFormatter.RangeIdentityResult
Used to indicate that the two numbers in the range were equal, even before any rounding rules were applied.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# NumberRangeFormatter.RangeIdentityResult\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nRangeIdentityResult\n===================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/icu/number/NumberRangeFormatter.RangeIdentityResult \"View this page in Java\") \n\n```\nclass RangeIdentityResult\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.number.NumberRangeFormatter.RangeIdentityResult](#)\\\u003e ||\n| | ↳ | [android.icu.number.NumberRangeFormatter.RangeIdentityResult](#) |\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [NumberRangeFormatter.RangeIdentityResult.EQUAL_AFTER_ROUNDING](#ENUM_VALUE:EQUAL_AFTER_ROUNDING), [NumberRangeFormatter.RangeIdentityResult.EQUAL_BEFORE_ROUNDING](#ENUM_VALUE:EQUAL_BEFORE_ROUNDING), [NumberRangeFormatter.RangeIdentityResult.NOT_EQUAL](#ENUM_VALUE:NOT_EQUAL) |-----------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------| | [NumberRangeFormatter.RangeIdentityResult.EQUAL_AFTER_ROUNDING](#ENUM_VALUE:EQUAL_AFTER_ROUNDING) | Used to indicate that the two numbers in the range were equal, but only after rounding rules were applied. | | [NumberRangeFormatter.RangeIdentityResult.EQUAL_BEFORE_ROUNDING](#ENUM_VALUE:EQUAL_BEFORE_ROUNDING) | Used to indicate that the two numbers in the range were equal, even before any rounding rules were applied. | | [NumberRangeFormatter.RangeIdentityResult.NOT_EQUAL](#ENUM_VALUE:NOT_EQUAL) | Used to indicate that the two numbers in the range were not equal, even after rounding rules were applied. | |\n\nUsed in the result class FormattedNumberRange to indicate to the user whether the numbers formatted in the range were equal or not, and whether or not the identity fallback was applied.\n\nSummary\n-------\n\n| Enum values ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [EQUAL_AFTER_ROUNDING](#ENUM_VALUE:EQUAL_AFTER_ROUNDING) Used to indicate that the two numbers in the range were equal, but only after rounding rules were applied. |\n| [EQUAL_BEFORE_ROUNDING](#ENUM_VALUE:EQUAL_BEFORE_ROUNDING) Used to indicate that the two numbers in the range were equal, even before any rounding rules were applied. |\n| [NOT_EQUAL](#ENUM_VALUE:NOT_EQUAL) Used to indicate that the two numbers in the range were not equal, even after rounding rules were applied. |\n\nEnum values\n-----------\n\n### EQUAL_AFTER_ROUNDING\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val EQUAL_AFTER_ROUNDING : NumberRangeFormatter.RangeIdentityResult\n```\n\nUsed to indicate that the two numbers in the range were equal, but only after rounding rules were applied. \n**See Also**\n\n- [android.icu.number.NumberRangeFormatter](/reference/kotlin/android/icu/number/NumberRangeFormatter) \n\n### EQUAL_BEFORE_ROUNDING\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val EQUAL_BEFORE_ROUNDING : NumberRangeFormatter.RangeIdentityResult\n```\n\nUsed to indicate that the two numbers in the range were equal, even before any rounding rules were applied. \n**See Also**\n\n- [android.icu.number.NumberRangeFormatter](/reference/kotlin/android/icu/number/NumberRangeFormatter) \n\n### NOT_EQUAL\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val NOT_EQUAL : NumberRangeFormatter.RangeIdentityResult\n```\n\nUsed to indicate that the two numbers in the range were not equal, even after rounding rules were applied. \n**See Also**\n\n- [android.icu.number.NumberRangeFormatter](/reference/kotlin/android/icu/number/NumberRangeFormatter)"]]