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 aArgumentParserSuccessfulResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionempty()booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.Object[]Returns the value of theparsedArgumentsrecord component.toString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface kboyle.oktane.core.results.argumentparser.ArgumentParserResult
monoMethods inherited from interface kboyle.oktane.core.results.SuccessfulResult
success
-
Constructor Details
-
ArgumentParserSuccessfulResult
Creates an instance of aArgumentParserSuccessfulResultrecord class.- Parameters:
parsedArguments- the value for theparsedArgumentsrecord 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 theparsedArgumentsrecord component.- Specified by:
parsedArgumentsin interfaceArgumentParserResult- Returns:
- the value of the
parsedArgumentsrecord component
-