Empty Persistent Data Container
An immutable implementation of PersistentDataContainer and BufferedPersistentDataContainer that does not store any data.
This container always returns null or false for any retrieval or existence checks, and reports its size as 0. It behaves as an empty container, making it useful as a default or placeholder implementation.
Since this implementation is immutable, methods for modifying the buffer or data storage have no effect. Any attempts to save data or iterate over the keys will operate as if the container is completely empty.
This class guarantees:
isEmpty()always returnstruesizeis always0No data is ever held or retained
Use this class when no persistent or buffered data management is required, but an implementation of PersistentDataContainer or BufferedPersistentDataContainer is needed.
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.
Clears the buffer.
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.
Deletes the buffer with the given key.
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.
Saves the data in the container to the specified output stream.
Converts the current PersistentDataContainer to a buffered version.
Converts the current PersistentDataContainer instance to an immutable implementation.
Converts this PersistentDataContainer into a MutablePersistentDataContainer.