Record Class SchedulingDSL.ConstraintExpression.ActivityExpression
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.scheduler.server.models.SchedulingDSL.ConstraintExpression.ActivityExpression
- All Implemented Interfaces:
SchedulingDSL.ConstraintExpression
- Enclosing interface:
SchedulingDSL.ConstraintExpression
public static record SchedulingDSL.ConstraintExpression.ActivityExpression(String type, Optional<gov.nasa.jpl.aerie.constraints.tree.StructExpressionAt> arguments)
extends Record
implements SchedulingDSL.ConstraintExpression
-
Nested Class Summary
Nested classes/interfaces inherited from interface gov.nasa.jpl.aerie.scheduler.server.models.SchedulingDSL.ConstraintExpression
SchedulingDSL.ConstraintExpression.ActivityExpression, SchedulingDSL.ConstraintExpression.WindowsExpression -
Constructor Summary
ConstructorsConstructorDescriptionActivityExpression(String type, Optional<gov.nasa.jpl.aerie.constraints.tree.StructExpressionAt> arguments) Creates an instance of aActivityExpressionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionOptional<gov.nasa.jpl.aerie.constraints.tree.StructExpressionAt> Returns the value of theargumentsrecord 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.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ActivityExpression
public ActivityExpression(String type, Optional<gov.nasa.jpl.aerie.constraints.tree.StructExpressionAt> arguments) Creates an instance of aActivityExpressionrecord class.- Parameters:
type- the value for thetyperecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
arguments
Returns the value of theargumentsrecord component.- Returns:
- the value of the
argumentsrecord component
-