Record Class HasuraAction.ConstraintArgumentItem
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.merlin.server.models.HasuraAction.ConstraintArgumentItem
- All Implemented Interfaces:
HasuraAction.Input
- Enclosing class:
HasuraAction<I extends HasuraAction.Input>
public static record HasuraAction.ConstraintArgumentItem(long constraintId, long revision, Map<String,gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue> arguments)
extends Record
implements HasuraAction.Input
-
Constructor Summary
ConstructorsConstructorDescriptionConstraintArgumentItem(long constraintId, long revision, Map<String, gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue> arguments) Creates an instance of aConstraintArgumentItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentsrecord component.longReturns the value of theconstraintIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longrevision()Returns the value of therevisionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConstraintArgumentItem
public ConstraintArgumentItem(long constraintId, long revision, Map<String, gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue> arguments) Creates an instance of aConstraintArgumentItemrecord class.- Parameters:
constraintId- the value for theconstraintIdrecord componentrevision- the value for therevisionrecord componentarguments- the value for theargumentsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
constraintId
public long constraintId()Returns the value of theconstraintIdrecord component.- Returns:
- the value of the
constraintIdrecord component
-
revision
public long revision()Returns the value of therevisionrecord component.- Returns:
- the value of the
revisionrecord component
-
arguments
Returns the value of theargumentsrecord component.- Returns:
- the value of the
argumentsrecord component
-