Record Class EnrollmentTokenCreated
java.lang.Object
java.lang.Record
org.jwcarman.who.enrollment.EnrollmentTokenCreated
- Record Components:
occurredAt- when it happenedidentityId- the identity concernedtokenId- the enrollment token concerned (never its value)
- All Implemented Interfaces:
WhoEvent
-
Constructor Summary
ConstructorsConstructorDescriptionEnrollmentTokenCreated(Instant occurredAt, UUID identityId, UUID tokenId) Validates that no component is null. -
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.Returns the value of theidentityIdrecord component.Returns the value of theoccurredAtrecord component.tokenId()Returns the value of thetokenIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EnrollmentTokenCreated
-
-
Method Details
-
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). -
occurredAt
Returns the value of theoccurredAtrecord component.- Specified by:
occurredAtin interfaceWhoEvent- Returns:
- the value of the
occurredAtrecord component
-
identityId
Returns the value of theidentityIdrecord component.- Returns:
- the value of the
identityIdrecord component
-
tokenId
-