equals

open operator override fun equals(other: Any?): Boolean(source)

Checks if the current Key object is equal to the provided object. Two Key objects are considered equal if the following conditions are met:

  • The objects are references to the same memory location (this === other).

  • The other object is not null and is of the same class as Key.

  • The raw byte arrays of the keys are equal (raw.contentEquals(other.raw)).

  • The keySpecification map contains the CurveKey property and its value is equal to the value of the other key's CurveKey property.

Return

True if the objects are equal, false otherwise.

Parameters

other

The object to compare with the current Key.