Record Class ConsoleCommand.Outcome
java.lang.Object
java.lang.Record
ai.badmonkey.agentspaces.console.ConsoleCommand.Outcome
- Enclosing interface:
ConsoleCommand
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConsoleCommand.Outcomedispatched(String message, String entryId) A success carrying the id of an entry the command dispatched.entryId()Returns the value of theentryIdrecord component.final booleanIndicates whether some other object is "equal to" this one.static ConsoleCommand.OutcomeA failure carrying the reason.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.booleanok()Returns the value of theokrecord component.static ConsoleCommand.OutcomeA success carrying a human-readable message.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Outcome
-
-
Method Details
-
ok
A success carrying a human-readable message. -
dispatched
A success carrying the id of an entry the command dispatched. -
failed
A failure carrying the reason. -
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. -
ok
public boolean ok()Returns the value of theokrecord component.- Returns:
- the value of the
okrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
entryId
Returns the value of theentryIdrecord component.- Returns:
- the value of the
entryIdrecord component
-