Record Class ScheduleResults.GoalResult
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.scheduler.server.services.ScheduleResults.GoalResult
- Enclosing class:
ScheduleResults
public static record ScheduleResults.GoalResult(Collection<gov.nasa.jpl.aerie.types.ActivityDirectiveId> createdActivities, Collection<gov.nasa.jpl.aerie.types.ActivityDirectiveId> satisfyingActivities, boolean satisfied)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGoalResult(Collection<gov.nasa.jpl.aerie.types.ActivityDirectiveId> createdActivities, Collection<gov.nasa.jpl.aerie.types.ActivityDirectiveId> satisfyingActivities, boolean satisfied) Creates an instance of aGoalResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionCollection<gov.nasa.jpl.aerie.types.ActivityDirectiveId> Returns the value of thecreatedActivitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thesatisfiedrecord component.Collection<gov.nasa.jpl.aerie.types.ActivityDirectiveId> Returns the value of thesatisfyingActivitiesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GoalResult
public GoalResult(Collection<gov.nasa.jpl.aerie.types.ActivityDirectiveId> createdActivities, Collection<gov.nasa.jpl.aerie.types.ActivityDirectiveId> satisfyingActivities, boolean satisfied) Creates an instance of aGoalResultrecord class.- Parameters:
createdActivities- the value for thecreatedActivitiesrecord componentsatisfyingActivities- the value for thesatisfyingActivitiesrecord componentsatisfied- the value for thesatisfiedrecord 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 '=='. -
createdActivities
Returns the value of thecreatedActivitiesrecord component.- Returns:
- the value of the
createdActivitiesrecord component
-
satisfyingActivities
Returns the value of thesatisfyingActivitiesrecord component.- Returns:
- the value of the
satisfyingActivitiesrecord component
-
satisfied
public boolean satisfied()Returns the value of thesatisfiedrecord component.- Returns:
- the value of the
satisfiedrecord component
-