Package com.yahoo.security.tls
Record Class TlsMetrics.Snapshot
java.lang.Object
java.lang.Record
com.yahoo.security.tls.TlsMetrics.Snapshot
- Enclosing class:
- TlsMetrics
public static record TlsMetrics.Snapshot(long capabilityChecksSucceeded, long capabilityChecksFailed)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSnapshot(long capabilityChecksSucceeded, long capabilityChecksFailed) Creates an instance of aSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecapabilityChecksFailedrecord component.longReturns the value of thecapabilityChecksSucceededrecord component.changesSince(TlsMetrics.Snapshot previous) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
Snapshot
public Snapshot(long capabilityChecksSucceeded, long capabilityChecksFailed) Creates an instance of aSnapshotrecord class.- Parameters:
capabilityChecksSucceeded- the value for thecapabilityChecksSucceededrecord componentcapabilityChecksFailed- the value for thecapabilityChecksFailedrecord component
-
-
Method Details
-
changesSince
-
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 with '=='. -
capabilityChecksSucceeded
public long capabilityChecksSucceeded()Returns the value of thecapabilityChecksSucceededrecord component.- Returns:
- the value of the
capabilityChecksSucceededrecord component
-
capabilityChecksFailed
public long capabilityChecksFailed()Returns the value of thecapabilityChecksFailedrecord component.- Returns:
- the value of the
capabilityChecksFailedrecord component
-