Skip to main content

UpgradePolicy

open class UpgradePolicy : Disposable, AutoCloseable, UpgradePolicyInterface

Representation of upgrade policy constants in iota::package.

Functions

NameSummary
asU8open override fun asU8(): UByte
Returns the internal representation.
close@Synchronized
open override fun close()
destroyopen override fun destroy()
equalsopen operator override fun equals(other: Any?): Boolean
toStringopen override fun toString(): String

Companion object functions

NameSummary
additivefun additive(): UpgradePolicy
Allows adding new functionalities (e.g., new public functions or structs) but restricts changes to existing functionalities.
compatiblefun compatible(): UpgradePolicy
The least restrictive policy. Permits changes to all function implementations, the removal of ability constraints on generic type parameters in function signatures, and modifications to private, public(friend), and entry function signatures. However, public function signatures and existing types cannot be changed.
depOnlyfun depOnly(): UpgradePolicy
Limits modifications to the package’s dependencies only.