Record Class PoseSource.Result
java.lang.Object
java.lang.Record
frc.spectrumLib.localization.PoseSource.Result
- Enclosing class:
PoseSource
public static record PoseSource.Result(PoseObservation observation, String rejection, StdDevModel.StdDevs stdDevs)
extends Record
Gate outcome for one observation.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(PoseObservation observation, String rejection, StdDevModel.StdDevs stdDevs) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepted()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theobservationrecord component.Returns the value of therejectionrecord component.stdDevs()Returns the value of thestdDevsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
observation- the value for theobservationrecord componentrejection- the value for therejectionrecord componentstdDevs- the value for thestdDevsrecord component
-
-
Method Details
-
accepted
public boolean accepted() -
toString
-
hashCode
-
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). -
observation
Returns the value of theobservationrecord component.- Returns:
- the value of the
observationrecord component
-
rejection
Returns the value of therejectionrecord component.- Returns:
- the value of the
rejectionrecord component
-
stdDevs
Returns the value of thestdDevsrecord component.- Returns:
- the value of the
stdDevsrecord component
-