Record Class CustomerScope
java.lang.Object
java.lang.Record
ai.redouble.examples.scope.CustomerScope
- All Implemented Interfaces:
Scope
-
Constructor Summary
ConstructorsConstructorDescriptionCustomerScope(String customerId) Creates an instance of aCustomerScoperecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecustomerIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CustomerScope
Creates an instance of aCustomerScoperecord class.- Parameters:
customerId- the value for thecustomerIdrecord component
-
-
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). -
customerId
Returns the value of thecustomerIdrecord component.- Returns:
- the value of the
customerIdrecord component
-