Record Class Validators.Result.Success
java.lang.Object
java.lang.Record
io.github.kaktushose.jdac.dispatching.validation.internal.Validators.Result.Success
- All Implemented Interfaces:
Validators.Result
- Enclosing interface:
Validators.Result
public static record Validators.Result.Success(Validator<?,?> validator)
extends Record
implements Validators.Result
-
Nested Class Summary
Nested classes/interfaces inherited from interface Validators.Result
Validators.Result.DiscordHandled, Validators.Result.NotFound, Validators.Result.Success, Validators.Result.UnsupportedType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Validator<?, ?> Returns the value of thevalidatorrecord component.
-
Constructor Details
-
Success
Creates an instance of aSuccessrecord class.- Parameters:
validator- the value for thevalidatorrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
validator
Returns the value of thevalidatorrecord component.- Returns:
- the value of the
validatorrecord component
-