Record Class SchedulingConditionRecord
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.scheduler.server.models.SchedulingConditionRecord
public record SchedulingConditionRecord(SchedulingConditionId id, long revision, String name, SchedulingConditionSource source)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSchedulingConditionRecord(SchedulingConditionId id, long revision, String name, SchedulingConditionSource source) Creates an instance of aSchedulingConditionRecordrecord 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.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.longrevision()Returns the value of therevisionrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SchedulingConditionRecord
public SchedulingConditionRecord(SchedulingConditionId id, long revision, String name, SchedulingConditionSource source) Creates an instance of aSchedulingConditionRecordrecord class.- Parameters:
id- the value for theidrecord componentrevision- the value for therevisionrecord componentname- the value for thenamerecord componentsource- the value for thesourcerecord 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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
revision
public long revision()Returns the value of therevisionrecord component.- Returns:
- the value of the
revisionrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-