UpgradePolicy
open class UpgradePolicy : Disposable, AutoCloseable, UpgradePolicyInterface
Representation of upgrade policy constants in iota::package.
Functions
| Name | Summary |
|---|---|
| asU8 | open override fun asU8(): UByte Returns the internal representation. |
| close | @Synchronized open override fun close() |
| destroy | open override fun destroy() |
| equals | open operator override fun equals(other: Any?): Boolean |
| toString | open override fun toString(): String |
Companion object functions
| Name | Summary |
|---|---|
| additive | fun additive(): UpgradePolicy Allows adding new functionalities (e.g., new public functions or structs) but restricts changes to existing functionalities. |
| compatible | fun 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. |
| depOnly | fun depOnly(): UpgradePolicy Limits modifications to the package’s dependencies only. |