Stay organized with collections
Save and categorize content based on your preferences.
Dumpable
interface Dumpable
Represents an object whose state can be dumped into a PrintWriter
.
Summary
Public methods |
abstract Unit |
Dumps the internal state into the given writer .
|
open String |
Gets the name of the Dumpable .
|
Public methods
dump
abstract fun dump(
writer: PrintWriter,
args: Array<String!>?
): Unit
Dumps the internal state into the given writer
.
Parameters |
writer |
PrintWriter: writer to be written to This value cannot be null . |
args |
Array<String!>?: optional list of arguments This value may be null . |
getDumpableName
open fun getDumpableName(): String
Gets the name of the Dumpable
.
Return |
String |
class name, by default. This value cannot be null . |
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,["# Dumpable\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nDumpable\n========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/util/Dumpable \"View this page in Java\") \n\n```\ninterface Dumpable\n```\n\n|----------------------------|\n| [android.util.Dumpable](#) |\n\nRepresents an object whose state can be dumped into a [PrintWriter](../../java/io/PrintWriter.html#).\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [dump](#dump(java.io.PrintWriter,%20kotlin.Array))`(`writer:` `[PrintWriter](../../java/io/PrintWriter.html#)`, `args:` `[Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\u003e?`)` Dumps the internal state into the given `writer`. |\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [getDumpableName](#getDumpableName())`()` Gets the name of the [Dumpable](#). |\n\nPublic methods\n--------------\n\n### dump\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun dump(\n writer: PrintWriter, \n args: Array\u003cString!\u003e?\n): Unit\n```\n\nDumps the internal state into the given `writer`.\n\n| Parameters ||\n|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `writer` | [PrintWriter](../../java/io/PrintWriter.html#): writer to be written to This value cannot be `null`. |\n| `args` | [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\\\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\\\u003e?: optional list of arguments This value may be `null`. |\n\n### getDumpableName\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getDumpableName(): String\n```\n\nGets the name of the [Dumpable](#).\n\n| Return ||\n|----------------------------------------------------------------------------------|------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | class name, by default. This value cannot be `null`. |"]]