Record Class ScheduleRequest
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.scheduler.server.services.ScheduleRequest
- Record Components:
specificationId- target schedule specification to read as schedule configurationspecificationRev- the revision of the schedule specification and plan when the schedule request was placed (to determine if stale)
public record ScheduleRequest(SpecificationId specificationId, SpecificationRevisionData specificationRev)
extends Record
details of a scheduling request, including the target schedule specification version and goals to operate on
-
Constructor Summary
ConstructorsConstructorDescriptionScheduleRequest(SpecificationId specificationId, SpecificationRevisionData specificationRev) Creates an instance of aScheduleRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thespecificationIdrecord component.Returns the value of thespecificationRevrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScheduleRequest
Creates an instance of aScheduleRequestrecord class.- Parameters:
specificationId- the value for thespecificationIdrecord componentspecificationRev- the value for thespecificationRevrecord 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). -
specificationId
Returns the value of thespecificationIdrecord component.- Returns:
- the value of the
specificationIdrecord component
-
specificationRev
Returns the value of thespecificationRevrecord component.- Returns:
- the value of the
specificationRevrecord component
-