MutableDefaultBoundEntry

constructor(container: MutablePersistentDataContainer, key: String, type: PersistentDataType<P, C>, defaultValue: () -> C)(source)

Parameters

P

The primitive data type.

C

The complex data type.

key

The key associated with the value in the container.

type

The type used to serialize/deserialize the value.

defaultValue

A lambda function that provides the default value if the key does not exist.