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
ConstructorsConstructorDescriptionRootFindingResult(EquationSolvingAlgorithms.FunctionCoordinate<T> functionCoordinate, EquationSolvingAlgorithms.History<T, Metadata> history) Creates an instance of aRootFindingResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefunctionCoordinaterecord component.final inthashCode()Returns a hash code value for this object.history()Returns the value of thehistoryrecord component.final StringtoString()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 aRootFindingResultrecord class.- Parameters:
functionCoordinate- the value for thefunctionCoordinaterecord componenthistory- the value for thehistoryrecord 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 thefunctionCoordinaterecord component.- Returns:
- the value of the
functionCoordinaterecord component
-
history
Returns the value of thehistoryrecord component.- Returns:
- the value of the
historyrecord component
-