Record Class AccessPatternAnalyzer.KeyAccessCount<K>
java.lang.Object
java.lang.Record
cloud.opencode.base.cache.analysis.AccessPatternAnalyzer.KeyAccessCount<K>
- Type Parameters:
K- key type | 键类型- Record Components:
key- the key | 键count- access count | 访问计数
- Enclosing class:
AccessPatternAnalyzer<K>
Key with access count
带访问计数的键
- Since:
- JDK 25, opencode-base-cache V2.0.5
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
ConstructorsConstructorDescriptionKeyAccessCount(K key, long count) Creates an instance of aKeyAccessCountrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KeyAccessCount
-
-
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. -
key
-
count
-