bulk

inline fun MutablePersistentDataContainer.bulk(replace: Boolean = true, removeEntries: Boolean = replace, action: MutablePersistentDataContainer.() -> Unit)(source)

This methode is used to make a bulk operation on the MutablePersistentDataContainer.

This methode will create a MutableBufferedPersistentDataContainer and call the action on it.

Then it will copy the key-value pairs from the MutableBufferedPersistentDataContainer to the MutablePersistentDataContainer after MutablePersistentDataContainer.retainAll is called if replace is true.

If the replace is true, it will replace the value of the key in the MutablePersistentDataContainer if it already exists.

Receiver

The MutablePersistentDataContainer on which the bulk operation should be called.

Author

Fantamomo

Since

1.0-SNAPSHOT

Parameters

replace

If true, it will replace the value of the key in the MutablePersistentDataContainer if it already exists.

action

The action to perform on the MutableBufferedPersistentDataContainer.