derive

abstract fun derive(annotation: String?): Lock

Create a new Lock derived from this Lock. The new lock should have a unique identity (it should not be equivalent to any other lock) but should be obviously associated with this one. The provided annotation may optionally be used to provide additional information.

Parameters

annotation

Descriptive information about the derivation. May be used to provide additional information about the derived Lock.


open fun derive(): Lock

Create a new Lock derived from this Lock. The new lock should have a unique identity (it should not be equivalent to any other lock) but should be obviously associated with this one.