Record Class DistributedCache.ScanResult<K>
java.lang.Object
java.lang.Record
cloud.opencode.base.cache.distributed.DistributedCache.ScanResult<K>
- Type Parameters:
K- the key type - 键类型- Record Components:
keys- the set of keys found | 找到的键集合nextCursor- the cursor for the next scan | 下次扫描的游标finished- whether the scan is complete | 扫描是否完成
- Enclosing interface:
DistributedCache<K,V>
public static record DistributedCache.ScanResult<K>(Set<K> keys, String nextCursor, boolean finished)
extends Record
Result of a scan operation.
扫描操作的结果。
- Since:
- JDK 25, opencode-base-cache V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
ConstructorsConstructorDescriptionScanResult(Set<K> keys, String nextCursor, boolean finished) Creates an instance of aScanResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanfinished()Returns the value of thefinishedrecord component.final inthashCode()Returns a hash code value for this object.keys()Returns the value of thekeysrecord component.Returns the value of thenextCursorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScanResult
-
-
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. -
keys
-
nextCursor
Returns the value of thenextCursorrecord component.- Returns:
- the value of the
nextCursorrecord component
-
finished
-