Stay organized with collections
Save and categorize content based on your preferences.
ComparisonStyle
class ComparisonStyle
Comparison style enums used by UnicodeSet.compareTo(UnicodeSet, ComparisonStyle)
.
Summary
Enum values
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,["# UnicodeSet.ComparisonStyle\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nComparisonStyle\n===============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/icu/text/UnicodeSet.ComparisonStyle \"View this page in Java\") \n\n```\nclass ComparisonStyle\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.UnicodeSet.ComparisonStyle](#)\\\u003e ||\n| | ↳ | [android.icu.text.UnicodeSet.ComparisonStyle](#) |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [UnicodeSet.ComparisonStyle.LEXICOGRAPHIC](#ENUM_VALUE:LEXICOGRAPHIC), [UnicodeSet.ComparisonStyle.LONGER_FIRST](#ENUM_VALUE:LONGER_FIRST), [UnicodeSet.ComparisonStyle.SHORTER_FIRST](#ENUM_VALUE:SHORTER_FIRST) |-----------------------------------------------------------------------|--------| | [UnicodeSet.ComparisonStyle.LEXICOGRAPHIC](#ENUM_VALUE:LEXICOGRAPHIC) | \u003cbr /\u003e | | [UnicodeSet.ComparisonStyle.LONGER_FIRST](#ENUM_VALUE:LONGER_FIRST) | \u003cbr /\u003e | | [UnicodeSet.ComparisonStyle.SHORTER_FIRST](#ENUM_VALUE:SHORTER_FIRST) | \u003cbr /\u003e | |\n\nComparison style enums used by [UnicodeSet.compareTo(UnicodeSet, ComparisonStyle)](/reference/kotlin/android/icu/text/UnicodeSet#compareTo(android.icu.text.UnicodeSet,%20android.icu.text.UnicodeSet.ComparisonStyle)).\n\nSummary\n-------\n\n| Enum values ||\n|---------------------------------------------------|---|\n| [LEXICOGRAPHIC](#ENUM_VALUE:LEXICOGRAPHIC) \u003cbr /\u003e |\n| [LONGER_FIRST](#ENUM_VALUE:LONGER_FIRST) \u003cbr /\u003e |\n| [SHORTER_FIRST](#ENUM_VALUE:SHORTER_FIRST) \u003cbr /\u003e |\n\nEnum values\n-----------\n\n### LEXICOGRAPHIC\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val LEXICOGRAPHIC : UnicodeSet.ComparisonStyle\n``` \n\n### LONGER_FIRST\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val LONGER_FIRST : UnicodeSet.ComparisonStyle\n``` \n\n### SHORTER_FIRST\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val SHORTER_FIRST : UnicodeSet.ComparisonStyle\n```"]]