Any Persistent Data Type
A singleton implementation of PersistentDataType that allows handling of any data type as both its complex and primitive representations, without any transformation.
This type is primarily intended for advanced internal use cases where generic handling of data is required. Both the complex and primitive types are represented as Any, and the conversion methods act as identity functions.
This class is annotated with InternalPersistentApi, signaling that it is intended for internal use only and may change or be removed in future versions.
Note: Because this type accepts Any as both its complex and primitive types, it does not perform type safety checks or transformations. Use with caution.
Note: While all PersistentDataContainer implementations in this library support this data type, and it is recommended for third-party implementations to support it as well, there is no guarantee that external implementations will provide support for it.
Author
Fantamomo
Since
1.0-SNAPSHOT
Functions
Converts a primitive data type to a complex data type.
Converts a complex data type to a primitive data type.
Returns the KClass of the complex data type.
Returns the KClass of the primitive data type.