Stay organized with collections
Save and categorize content based on your preferences.
Output
open class Output<T : Any!>
Simple struct-like class for output parameters.
Summary
Public constructors |
Constructs an empty Output
|
Constructs an Output with the given value.
|
Public methods |
open String |
Returns a string representation of the object.
|
Properties |
T |
The value field
|
Public constructors
Output
Output()
Constructs an empty Output
Output
Output(value: T)
Constructs an Output
with the given value.
Parameters |
value |
T: the initial value |
Public methods
toString
open fun toString(): String
Returns a string representation of the object.
Return |
String |
a string representation of the object. |
Properties
value
var value: T
The value field
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,["# Output\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOutput\n======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/icu/util/Output \"View this page in Java\") \n\n```\nopen class Output\u003cT : Any!\u003e\n```\n\n|---|------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.icu.util.Output](#) |\n\nSimple struct-like class for output parameters.\n\nSummary\n-------\n\n| Public constructors ||\n|-----------------------------------------------------------------------------------------------------------|---|\n| [Output](#Output())`()` Constructs an empty `Output` |\n| [Output](#Output(android.icu.util.Output.T))`(`value:` `T`)` Constructs an `Output` with the given value. |\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|----------------------------------------------------------------------------|\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [toString](#toString())`()` Returns a string representation of the object. |\n\n| Properties ||\n|---|-----------------------------------------------------------|\n| T | [value](#value:android.icu.util.Output.T) The value field |\n\nPublic constructors\n-------------------\n\n### Output\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nOutput()\n```\n\nConstructs an empty `Output` \n\n### Output\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nOutput(value: T)\n```\n\nConstructs an `Output` with the given value.\n\n| Parameters ||\n|---------|----------------------|\n| `value` | T: the initial value |\n\nPublic methods\n--------------\n\n### toString\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun toString(): String\n```\n\nReturns a string representation of the object.\n\n| Return ||\n|----------------------------------------------------------------------------------|----------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | a string representation of the object. |\n\nProperties\n----------\n\n### value\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nvar value: T\n```\n\nThe value field"]]