Persistent Data Container Builder
A builder class for creating immutable instances of PersistentDataContainer.
This class extends MutablePersistentDataContainerImpl, allowing modifications to the persistent data during the build process. Once the build process is complete, the build function can be used to obtain an immutable PersistentDataContainer instance containing the configured data.
The builder allows you to leverage the mutable functionality provided by MutablePersistentDataContainerImpl and finalize the configuration into a read-only container.
Author
Fantamomo
Since
1.0-SNAPSHOT
See also
Functions
Creates a bound entry for accessing persistent data within the container.
Creates a DefaultBoundEntry that is bound to the specified PersistentDataContainer. This entry allows the retrieval of a value using the specified key and type, with the capability to provide a default value if the key does not exist in the container.
Finalizes the configuration of the persistent data and creates an immutable PersistentDataContainer instance.
This methode is used to make a bulk operation on the MutablePersistentDataContainer.
Checks if the container contains a value associated with the specified PersistentKey.
This methode copies all key-value pairs from the PersistentDataContainer to the receiver.
This methode is used to get the direct value of the key.
This method is used to get the value of the specified key from the PersistentDataContainer.
This method is used to get the value of the specified key from the PersistentDataContainer.
This methode is uses to get the element by the key.
Gets the primitive value associated with the specified key.
This method is used to get the value of the specified key from the PersistentDataContainer.
Loads data from the specified input stream using the specified serializer strategy.
Creates a new instance of MutableBoundEntry that is bound to the specified MutablePersistentDataContainer, using the provided key and PersistentDataType.
Creates a mutable bound entry for a key in the given mutable persistent data container.
Adds multiple entries to this container using vararg pairs.
Adds all entries from the provided map to this container.
Adds multiple nullable entries to this container.
Removes all values associated with the specified keys from this container.
Saves the data in the container to the specified output stream.
This method is used to set the value of the specified key in the PersistentDataContainer.
Converts this MutablePersistentDataContainer into a MutableBufferedPersistentDataContainer.
Converts the current PersistentDataContainer to a buffered version.
Converts the current MutablePersistentDataContainer to a thread-safe implementation by wrapping it in a ConcurrentPersistentDataContainer.
Converts the current PersistentDataContainer instance to an immutable implementation.
Converts this PersistentDataContainer into a MutablePersistentDataContainer.