Record Class Delegation
java.lang.Object
java.lang.Record
smartrics.iotics.identity.resolver.model.Delegation
-
Constructor Summary
ConstructorsConstructorDescriptionDelegation(String id, String controller, String proof, String proofType) Creates an instance of aDelegationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontrollerrecord 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.proof()Returns the value of theproofrecord component.Returns the value of theproofTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Delegation
Creates an instance of aDelegationrecord class.- Parameters:
id- the value for theidrecord componentcontroller- the value for thecontrollerrecord componentproof- the value for theproofrecord componentproofType- the value for theproofTyperecord component
-
-
Method Details
-
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
-
controller
Returns the value of thecontrollerrecord component.- Returns:
- the value of the
controllerrecord component
-
proof
Returns the value of theproofrecord component.- Returns:
- the value of the
proofrecord component
-
proofType
Returns the value of theproofTyperecord component.- Returns:
- the value of the
proofTyperecord component
-