Record Class DistinctErrorLog.DistinctObservation
java.lang.Object
java.lang.Record
org.agrona.concurrent.errors.DistinctErrorLog.DistinctObservation
- Enclosing class:
DistinctErrorLog
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDistinctObservation(Throwable throwable, int offset) Creates an instance of aDistinctObservationrecord 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.intoffset()Returns the value of theoffsetrecord component.Returns the value of thethrowablerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
throwable
The field for thethrowablerecord component. -
offset
private final int offsetThe field for theoffsetrecord component.
-
-
Constructor Details
-
DistinctObservation
DistinctObservation(Throwable throwable, int offset) Creates an instance of aDistinctObservationrecord class.- Parameters:
throwable- the value for thethrowablerecord componentoffset- the value for theoffsetrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
throwable
Returns the value of thethrowablerecord component.- Returns:
- the value of the
throwablerecord component
-
offset
public int offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-