Stay organized with collections
Save and categorize content based on your preferences.
Info
class Info
Output container for IDNA processing errors. The Info class is not suitable for subclassing.
Summary
Public constructors |
Constructor.
|
Public methods |
MutableSet<IDNA.Error!>! |
Returns a set indicating IDNA processing errors.
|
Boolean |
Were there IDNA processing errors?
|
Boolean |
Returns true if transitional and nontransitional processing produce different results.
|
Public constructors
Public methods
getErrors
fun getErrors(): MutableSet<IDNA.Error!>!
Returns a set indicating IDNA processing errors.
hasErrors
fun hasErrors(): Boolean
Were there IDNA processing errors?
Return |
Boolean |
true if there were processing errors |
isTransitionalDifferent
fun isTransitionalDifferent(): Boolean
Returns true if transitional and nontransitional processing produce different results. This is the case when the input label or domain name contains one or more deviation characters outside a Punycode label (see UTS #46).
- With nontransitional processing, such characters are copied to the destination string.
- With transitional processing, such characters are mapped (sharp s/sigma) or removed (joiner/nonjoiner).
Return |
Boolean |
true if transitional and nontransitional processing produce different results |
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,["# IDNA.Info\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nInfo\n====\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/icu/text/IDNA.Info \"View this page in Java\") \n\n```\nclass Info\n```\n\n|---|---------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| โณ | [android.icu.text.IDNA.Info](#) |\n\nOutput container for IDNA processing errors. The Info class is not suitable for subclassing.\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------|---|\n| [Info](#Info())`()` Constructor. |\n\n| Public methods ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------|\n| [MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\\\u003c[IDNA.Error](/reference/kotlin/android/icu/text/IDNA.Error)!\\\u003e! | [getErrors](#getErrors())`()` Returns a set indicating IDNA processing errors. |\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [hasErrors](#hasErrors())`()` Were there IDNA processing errors? |\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isTransitionalDifferent](#isTransitionalDifferent())`()` Returns true if transitional and nontransitional processing produce different results. |\n\nPublic constructors\n-------------------\n\n### Info\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nInfo()\n```\n\nConstructor.\n\nPublic methods\n--------------\n\n### getErrors\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getErrors(): MutableSet\u003cIDNA.Error!\u003e!\n```\n\nReturns a set indicating IDNA processing errors.\n\n| Return ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------|\n| [MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\u003c[IDNA.Error](/reference/kotlin/android/icu/text/IDNA.Error)!\u003e! | set of processing errors (modifiable, and not null) |\n\n### hasErrors\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun hasErrors(): Boolean\n```\n\nWere there IDNA processing errors?\n\n| Return ||\n|------------------------------------------------------------------------------------|--------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | true if there were processing errors |\n\n### isTransitionalDifferent\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun isTransitionalDifferent(): Boolean\n```\n\nReturns true if transitional and nontransitional processing produce different results. This is the case when the input label or domain name contains one or more deviation characters outside a Punycode label (see UTS #46).\n\n- With nontransitional processing, such characters are copied to the destination string.\n- With transitional processing, such characters are mapped (sharp s/sigma) or removed (joiner/nonjoiner).\n\n\u003cbr /\u003e\n\n| Return ||\n|------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | true if transitional and nontransitional processing produce different results |"]]