Record Class ElementQueryResult
java.lang.Object
java.lang.Record
com.shaft.mcp.ElementQueryResult
- Record Components:
activeEngine- the engine that answered the queryvalue- the query result
Result returned by unified, engine-dispatching
element_is_* query tools. activeEngine
always echoes which ActiveEngine answered the query (design doc amendment A2).-
Constructor Summary
ConstructorsConstructorDescriptionElementQueryResult(String activeEngine, boolean value) Creates an immutable element query result. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactiveEnginerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.booleanvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
ElementQueryResult
Creates an immutable element query result.
-
-
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. -
activeEngine
Returns the value of theactiveEnginerecord component.- Returns:
- the value of the
activeEnginerecord component
-
value
-