T - The type of object that this interface is applied to.@FunctionalInterface public interface ReadResolvable<T>
| Modifier and Type | Method and Description |
|---|---|
T |
readResolve()
A method to be implemented by classes that need to perform a post-deserialization step.
|
static <T> T |
readResolve(Object o)
Resolves the given object by calling its readResolve method if it implements the ReadResolvable interface,
otherwise it checks if the object is Serializable and attempts to call its readResolve method.
|
static <T> T readResolve(Object o)
T - The type of object.o - The object to be resolved.@NotNull T readResolve()
Copyright © 2024. All rights reserved.