Module gomint.api

Class BooleanValidator


  • public class BooleanValidator
    extends EnumValidator
    Version:
    1.0
    Author:
    geNAZt
    • Constructor Detail

      • BooleanValidator

        public BooleanValidator()
        Construct a new boolean validator which inserts "true" and "false" into an EnumValidator
    • Method Detail

      • validate

        public Object validate​(String input,
                               CommandSender commandSender)
        Validates given input
        Overrides:
        validate in class EnumValidator
        Parameters:
        input - from the command
        commandSender - which submitted the command
        Returns:
        non null object of validation on success (string for example) or null when validation failed