Record Class CommandNOPResult
java.lang.Object
java.lang.Record
kboyle.oktane.core.results.command.CommandNOPResult
- All Implemented Interfaces:
CommandResult
,Result
,SuccessfulResult
public record CommandNOPResult(Command command)
extends Record
implements CommandResult, SuccessfulResult
-
Constructor Summary
ConstructorsConstructorDescriptionCommandNOPResult(Command command)
Creates an instance of aCommandNOPResult
record class. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface kboyle.oktane.core.results.command.CommandResult
mono
Methods inherited from interface kboyle.oktane.core.results.SuccessfulResult
success
-
Constructor Details
-
CommandNOPResult
Creates an instance of aCommandNOPResult
record class.- Parameters:
command
- the value for thecommand
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
command
Returns the value of thecommand
record component.- Specified by:
command
in interfaceCommandResult
- Returns:
- the value of the
command
record component
-