Record Class KeyCacheStats
java.lang.Object
java.lang.Record
ch.admin.bit.jeap.crypto.internal.core.keymanagement.KeyCacheStats
-
Constructor Summary
ConstructorsConstructorDescriptionKeyCacheStats(long hitCount, long missCount, long evictionCount) Creates an instance of aKeyCacheStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theevictionCountrecord component.final inthashCode()Returns a hash code value for this object.longhitCount()Returns the value of thehitCountrecord component.longReturns the value of themissCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KeyCacheStats
public KeyCacheStats(long hitCount, long missCount, long evictionCount) Creates an instance of aKeyCacheStatsrecord class.- Parameters:
hitCount- the value for thehitCountrecord componentmissCount- the value for themissCountrecord componentevictionCount- the value for theevictionCountrecord 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 with '=='. -
hitCount
public long hitCount()Returns the value of thehitCountrecord component.- Returns:
- the value of the
hitCountrecord component
-
missCount
public long missCount()Returns the value of themissCountrecord component.- Returns:
- the value of the
missCountrecord component
-
evictionCount
public long evictionCount()Returns the value of theevictionCountrecord component.- Returns:
- the value of the
evictionCountrecord component
-