Interface DataVerifier

All Known Implementing Classes:
VerifyInRange, VerifyIsInteger, VerifyIsPositiveInteger, VerifyNotEmpty, VerifyNotNull, VerifyNotNullOrEmpty

public interface DataVerifier
Interface for a data verification object. Implementing classes should evaluate the value passed into the verify(java.lang.Object) method to make sure it is valid according to the needs of the implementer.
Since:
3/14/14 1:11 PM
  • Method Summary

    Modifier and Type
    Method
    Description
    verify(Object value)
    Performs a verification of the given value.
  • Method Details

    • verify

      @Nullable String verify(Object value)
      Performs a verification of the given value. If the value is good, a null is returned. Otherwise, a String explaining how the verification failed will be returned.
      Parameters:
      value - The value to be evaluated.
      Returns:
      NULL if the value is good, otherwise a description of how the evaluation failed.