Record Class CameraInfo
java.lang.Object
java.lang.Record
xbot.common.injection.electrical_contract.CameraInfo
public record CameraInfo(String networkTablesName, String friendlyName, Transform3d position, EnumSet<CameraCapabilities> capabilities)
extends Record
This class is used to provide information about the cameras on the robot.
-
Constructor Summary
ConstructorDescriptionCameraInfo
(String networkTablesName, String friendlyName, Transform3d position, EnumSet<CameraCapabilities> capabilities) Creates an instance of aCameraInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecapabilities
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefriendlyName
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thenetworkTablesName
record component.position()
Returns the value of theposition
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CameraInfo
public CameraInfo(String networkTablesName, String friendlyName, Transform3d position, EnumSet<CameraCapabilities> capabilities) Creates an instance of aCameraInfo
record class.- Parameters:
networkTablesName
- the value for thenetworkTablesName
record componentfriendlyName
- the value for thefriendlyName
record componentposition
- the value for theposition
record componentcapabilities
- the value for thecapabilities
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)
. -
networkTablesName
Returns the value of thenetworkTablesName
record component.- Returns:
- the value of the
networkTablesName
record component
-
friendlyName
Returns the value of thefriendlyName
record component.- Returns:
- the value of the
friendlyName
record component
-
position
Returns the value of theposition
record component.- Returns:
- the value of the
position
record component
-
capabilities
Returns the value of thecapabilities
record component.- Returns:
- the value of the
capabilities
record component
-