Package mekhq.campaign
Record Class RouteAlternativesPlanner.Course
java.lang.Object
java.lang.Record
mekhq.campaign.RouteAlternativesPlanner.Course
- Enclosing class:
RouteAlternativesPlanner
public static record RouteAlternativesPlanner.Course(RouteAlternativesPlanner.CourseKind kind, List<PlanetarySystem> systems, double oneGTotalDays, RouteAlternativesPlanner.CircuitCoverage circuitCoverage)
extends Record
One immutable route comparison.
-
Constructor Summary
ConstructorsConstructorDescriptionCourse(RouteAlternativesPlanner.CourseKind kind, List<PlanetarySystem> systems, double oneGTotalDays, RouteAlternativesPlanner.CircuitCoverage circuitCoverage) Creates an instance of aCourserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecircuitCoveragerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intjumps()kind()Returns the value of thekindrecord component.doubleReturns the value of theoneGTotalDaysrecord component.systems()Returns the value of thesystemsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Course
public Course(RouteAlternativesPlanner.CourseKind kind, List<PlanetarySystem> systems, double oneGTotalDays, RouteAlternativesPlanner.CircuitCoverage circuitCoverage) Creates an instance of aCourserecord class.- Parameters:
kind- the value for thekindrecord componentsystems- the value for thesystemsrecord componentoneGTotalDays- the value for theoneGTotalDaysrecord componentcircuitCoverage- the value for thecircuitCoveragerecord component
-
-
Method Details
-
jumps
public int jumps() -
toJumpPath
-
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 '=='. -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
systems
Returns the value of thesystemsrecord component.- Returns:
- the value of the
systemsrecord component
-
oneGTotalDays
public double oneGTotalDays()Returns the value of theoneGTotalDaysrecord component.- Returns:
- the value of the
oneGTotalDaysrecord component
-
circuitCoverage
Returns the value of thecircuitCoveragerecord component.- Returns:
- the value of the
circuitCoveragerecord component
-