Package gov.nasa.jpl.aerie.scheduler
Record Class EquationSolvingAlgorithms.RootFindingResult<T,Metadata>
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.scheduler.EquationSolvingAlgorithms.RootFindingResult<T,Metadata>
- Enclosing class:
EquationSolvingAlgorithms
public static record EquationSolvingAlgorithms.RootFindingResult<T,Metadata> (EquationSolvingAlgorithms.FunctionCoordinate<T> functionCoordinate, EquationSolvingAlgorithms.History<T,Metadata> history)
extends Record
-
Constructor Summary
ConstructorDescriptionRootFindingResult
(EquationSolvingAlgorithms.FunctionCoordinate<T> functionCoordinate, EquationSolvingAlgorithms.History<T, Metadata> history) Creates an instance of aRootFindingResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefunctionCoordinate
record component.final int
hashCode()
Returns a hash code value for this object.history()
Returns the value of thehistory
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RootFindingResult
public RootFindingResult(EquationSolvingAlgorithms.FunctionCoordinate<T> functionCoordinate, EquationSolvingAlgorithms.History<T, Metadata> history) Creates an instance of aRootFindingResult
record class.- Parameters:
functionCoordinate
- the value for thefunctionCoordinate
record componenthistory
- the value for thehistory
record 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)
. -
functionCoordinate
Returns the value of thefunctionCoordinate
record component.- Returns:
- the value of the
functionCoordinate
record component
-
history
Returns the value of thehistory
record component.- Returns:
- the value of the
history
record component
-