Package su.onno.process
Record Class ProcessIdentity
java.lang.Object
java.lang.Record
su.onno.process.ProcessIdentity
public record ProcessIdentity(ProcessActorId id, String username, String displayName)
extends Record
Stable process identity plus mutable login/display snapshots for audit and UI.
-
Constructor Summary
ConstructorsConstructorDescriptionProcessIdentity(ProcessActorId id, String username, String displayName) Creates an instance of aProcessIdentityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.static ProcessIdentityusername()Returns the value of theusernamerecord component.
-
Constructor Details
-
ProcessIdentity
Creates an instance of aProcessIdentityrecord class.- Parameters:
id- the value for theidrecord componentusername- the value for theusernamerecord componentdisplayName- the value for thedisplayNamerecord component
-
-
Method Details
-
unlinked
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-