Record Class Reply<T>
java.lang.Object
java.lang.Record
lol.trq.orpheus.source.Reply<T>
- Type Parameters:
T- the answer type- Record Components:
result- how the request endedvalue- the answer whenresultis done; otherwise an empty value, never null
The answer to a question asked of a source.
-
Constructor Summary
ConstructorsConstructorDescriptionReply(ControlResult result, T value) Creates an instance of aReplyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleandone()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static <T> Reply<T> of(T value) result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
Method Details
-
of
-
done
public boolean done() -
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. All components in this record class are compared withObjects::equals(Object,Object). -
result
-
value
-