Stay organized with collections
Save and categorize content based on your preferences.
interface ObjectInputValidation
Callback interface to allow validation of objects within a graph. Allows an object to be called when a complete graph of objects has been deserialized.
Summary
Public methods |
abstract Unit |
Validates the object.
|
Public methods
validateObject
abstract fun validateObject(): Unit
Validates the object.
Exceptions |
java.io.InvalidObjectException |
If the object cannot validate itself. |
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,["# ObjectInputValidation\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nObjectInputValidation\n=====================\n\n```\ninterface ObjectInputValidation\n```\n\n|------------------------------------|\n| [java.io.ObjectInputValidation](#) |\n\nCallback interface to allow validation of objects within a graph. Allows an object to be called when a complete graph of objects has been deserialized.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|---------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [validateObject](#validateObject())`()` Validates the object. |\n\nPublic methods\n--------------\n\n### validateObject\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun validateObject(): Unit\n```\n\nValidates the object.\n\n| Exceptions ||\n|----------------------------------|---------------------------------------|\n| `java.io.InvalidObjectException` | If the object cannot validate itself. |"]]