Record Class MessageId
java.lang.Object
java.lang.Record
com.iantapply.relay.api.MessageId
- Record Components:
value- underlying UUID
-
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.static MessageIdParses a standard UUID string.static MessageIdrandom()Generates a new random identifier.toString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
MessageId
Creates an identifier from a UUID.- Parameters:
value- underlying UUID- Throws:
NullPointerException- ifvalueisnull
-
-
Method Details
-
random
-
parse
Parses a standard UUID string.- Parameters:
value- UUID text- Returns:
- parsed identifier
- Throws:
IllegalArgumentException- ifvalueis not a UUID
-
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). -
value
-