Record Class ArgumentParserSuccessfulResult
java.lang.Object
java.lang.Record
kboyle.oktane.core.results.argumentparser.ArgumentParserSuccessfulResult
- All Implemented Interfaces:
ArgumentParserResult
,Result
,SuccessfulResult
public record ArgumentParserSuccessfulResult(Object[] parsedArguments)
extends Record
implements ArgumentParserResult, SuccessfulResult
-
Constructor Summary
ConstructorsConstructorDescriptionArgumentParserSuccessfulResult(Object[] parsedArguments)
Creates an instance of aArgumentParserSuccessfulResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionempty()
boolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.Object[]
Returns the value of theparsedArguments
record component.toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface kboyle.oktane.core.results.argumentparser.ArgumentParserResult
mono
Methods inherited from interface kboyle.oktane.core.results.SuccessfulResult
success
-
Constructor Details
-
ArgumentParserSuccessfulResult
Creates an instance of aArgumentParserSuccessfulResult
record class.- Parameters:
parsedArguments
- the value for theparsedArguments
record component
-
-
Method Details
-
empty
-
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)
. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
parsedArguments
Returns the value of theparsedArguments
record component.- Specified by:
parsedArguments
in interfaceArgumentParserResult
- Returns:
- the value of the
parsedArguments
record component
-