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 SummaryConstructorsConstructorDescriptionArgumentParserSuccessfulResult(Object[] parsedArguments)Creates an instance of aArgumentParserSuccessfulResultrecord class.
- 
Method SummaryModifier 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.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface kboyle.oktane.core.results.argumentparser.ArgumentParserResultmonoMethods inherited from interface kboyle.oktane.core.results.SuccessfulResultsuccess
- 
Constructor Details- 
ArgumentParserSuccessfulResultCreates an instance of aArgumentParserSuccessfulResultrecord class.- Parameters:
- parsedArguments- the value for the- parsedArgumentsrecord component
 
 
- 
- 
Method Details- 
empty
- 
equalsIndicates 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).
- 
hashCodepublic int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
toStringReturns 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.
- 
parsedArgumentsReturns the value of theparsedArgumentsrecord component.- Specified by:
- parsedArgumentsin interface- ArgumentParserResult
- Returns:
- the value of the parsedArgumentsrecord component
 
 
-