Record Class HelpCommandSupport.HelpResult
java.lang.Object
java.lang.Record
dev.ua.theroer.magicutils.commands.HelpCommandSupport.HelpResult
- Record Components:
success- true when help rendering succeedslines- formatted output lineserrorMessage- error message when rendering fails
- Enclosing class:
HelpCommandSupport
-
Constructor Summary
ConstructorsConstructorDescriptionHelpResult(boolean success, List<String> lines, String errorMessage) Creates an instance of aHelpResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorMessagerecord component.final inthashCode()Returns a hash code value for this object.lines()Returns the value of thelinesrecord component.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HelpResult
Creates an instance of aHelpResultrecord class.- Parameters:
success- the value for thesuccessrecord componentlines- the value for thelinesrecord componenterrorMessage- the value for theerrorMessagerecord component
-
-
Method Details
-
success
-
failure
-
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. -
success
-
lines
-
errorMessage
Returns the value of theerrorMessagerecord component.- Returns:
- the value of the
errorMessagerecord component
-