Package io.nuov.validator
Class ObjectValidator
- All Implemented Interfaces:
Validator
The class ObjectValidator.
This class only validates for nulls. It exists to improve readability in validation
-
Field Summary
Fields inherited from class io.nuov.validator.AbstractValidator
named, noun, singularSentenceBuilder, value
-
Method Summary
Methods inherited from class io.nuov.validator.AbstractValidator
allowNull, getMessage, optimizeMessage, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.nuov.validator.Validator
isNotValid, isValid
-
Method Details
-
the
Instantiates an ObjectValidator.- Parameters:
noun
- the nounnamed
- the namedvalue
- the value- Returns:
- a new ObjectValidator
-