Uses of Interface
com.winterhavenmc.library.messagebuilder.validation.Validator
Packages that use Validator
Package
Description
Provides a flexible, localized validation framework for use within the MessageBuilder library.
-
Uses of Validator in com.winterhavenmc.library.messagebuilder.validation
Classes in com.winterhavenmc.library.messagebuilder.validation that implement ValidatorModifier and TypeClassDescriptionfinal record
Logging<T>
AValidator
implementation that logs a warning or error when a value fails validation, but does not throw.final record
Throwing<T>
AValidator
implementation that throws aValidationException
when a value fails validation.Methods in com.winterhavenmc.library.messagebuilder.validation that return ValidatorModifier and TypeMethodDescriptionstatic <T> Validator
<T> Validator.logging
(LogLevel level, ErrorMessageKey messageKey, Parameter parameter) Returns a handler that logs a validation warning or error using the specified log level, message key, and parameter.static <T> Validator
<T> Validator.throwing
(ErrorMessageKey messageKey, Parameter parameter) Returns a handler that throws aValidationException
using the given error message key and parameter.Methods in com.winterhavenmc.library.messagebuilder.validation with parameters of type Validator