记录类 ReadCacheEntry
java.lang.Object
java.lang.Record
io.agentscope.core.state.ReadCacheEntry
- 记录组件:
lines- line contents at the time of capture (defensively copied; nevernull)updatedAt- file modification timestamp in epoch seconds with millisecond fractionbytes- approximate size of the cached entry in kilobytes (UTF-8 byte sum / 1024)filePath- absolute path to the cached file (nevernull)
public record ReadCacheEntry(List<String> lines, double updatedAt, double bytes, String filePath)
extends Record
Snapshot of a file's contents kept in the tool read cache.
-
构造器概要
构造器构造器说明ReadCacheEntry(List<String> lines, double updatedAt, double bytes, String filePath) 创建ReadCacheEntry记录类的实例。 -
方法概要
-
构造器详细资料
-
方法详细资料
-
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 使用Objects::equals(Object,Object)对参考组件进行比较;使用 '==' 对基元组件进行比较 -
lines
返回lines记录组件的值。- 返回:
lines记录组件的值
-
updatedAt
public double updatedAt()返回updatedAt记录组件的值。- 返回:
updatedAt记录组件的值
-
bytes
public double bytes()返回bytes记录组件的值。- 返回:
bytes记录组件的值
-
filePath
返回filePath记录组件的值。- 返回:
filePath记录组件的值
-