Record Class ControlResult
java.lang.Object
java.lang.Record
lol.trq.orpheus.ControlResult
- Record Components:
status- how it endedreason- a short explanation for anything butControlStatus.DONE; may be empty
The outcome of a command.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionControlResult(ControlStatus status, String reason) Creates an instance of aControlResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleandone()final booleanIndicates whether some other object is "equal to" this one.static ControlResultfinal inthashCode()Returns a hash code value for this object.reason()Returns the value of thereasonrecord component.static ControlResultstatus()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.static ControlResultunsupported(String reason)
-
Field Details
-
DONE
-
-
Constructor Details
-
Method Details
-
unsupported
-
refused
-
failed
-
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). -
status
-
reason
-