Record Class DataQueryClient.Fetched
java.lang.Object
java.lang.Record
ai.badmonkey.agentspaces.connect.DataQueryClient.Fetched
- Record Components:
result- the result entryfromCache- whether a live space result answered with no new query
- Enclosing class:
DataQueryClient
public static record DataQueryClient.Fetched(DataQueryEntries.DataResult result, boolean fromCache)
extends Record
One fetch's answer.
-
Constructor Summary
ConstructorsConstructorDescriptionFetched(DataQueryEntries.DataResult result, boolean fromCache) Creates an instance of aFetchedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefromCacherecord component.final inthashCode()Returns a hash code value for this object.result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. -
result
-
fromCache
-