Record Class StDeviceKey
java.lang.Object
java.lang.Record
com.io7m.stonesignal.server.devices.StDeviceKey
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.static StDeviceKeyrandom()static StDeviceKeyfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
VALID_KEY
The pattern that defines a valid key.
-
-
Constructor Details
-
StDeviceKey
-
-
Method Details
-
random
- Returns:
- A strong random device key
-
redactedKey
- Returns:
- A redacted key
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
key
-