Record Class TelemetryKey.SizeAndTimeKeys
java.lang.Object
java.lang.Record
org.sonar.java.telemetry.TelemetryKey.SizeAndTimeKeys
- All Implemented Interfaces:
TelemetryKey.SpeedKeys
- Enclosing class:
TelemetryKey
public static record TelemetryKey.SizeAndTimeKeys(TelemetryKey sizeCharsKey, TelemetryKey timeMsKey)
extends Record
implements TelemetryKey.SpeedKeys
-
Constructor Summary
ConstructorsConstructorDescriptionSizeAndTimeKeys(TelemetryKey sizeCharsKey, TelemetryKey timeMsKey) Creates an instance of aSizeAndTimeKeysrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesizeCharsKeyrecord component.Returns the value of thetimeMsKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SizeAndTimeKeys
Creates an instance of aSizeAndTimeKeysrecord class.- Parameters:
sizeCharsKey- the value for thesizeCharsKeyrecord componenttimeMsKey- the value for thetimeMsKeyrecord component
-
-
Method Details
-
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). -
sizeCharsKey
Returns the value of thesizeCharsKeyrecord component.- Specified by:
sizeCharsKeyin interfaceTelemetryKey.SpeedKeys- Returns:
- the value of the
sizeCharsKeyrecord component
-
timeMsKey
Returns the value of thetimeMsKeyrecord component.- Specified by:
timeMsKeyin interfaceTelemetryKey.SpeedKeys- Returns:
- the value of the
timeMsKeyrecord component
-