Module org.monospark.remix
Package org.monospark.remix.internal
Record RecordResolver.ParameterValue<T>
java.lang.Object
java.lang.Record
org.monospark.remix.internal.RecordResolver.ParameterValue<T>
- Enclosing class:
- RecordResolver<R extends Record>
public static record RecordResolver.ParameterValue<T>(RecordParameter parameter, T value) extends Record
-
Constructor Summary
Constructors Constructor Description ParameterValue(RecordParameter parameter, T value)Creates an instance of aParameterValuerecord. -
Method Summary
Modifier and Type Method Description booleanequals(Object o)Indicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.RecordParameterparameter()Returns the value of theparameterrecord component.StringtoString()Returns a string representation of this record.Tvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
ParameterValue
Creates an instance of aParameterValuerecord.- Parameters:
parameter- the value for theparameterrecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
toString
Returns a string representation of this record. The representation contains the name of the type, 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 are compared withObjects::equals(Object,Object). -
parameter
Returns the value of theparameterrecord component.- Returns:
- the value of the
parameterrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-