Interface InterfaceChecker<T extends InterfaceChecker<T,U>,U>

Type Parameters:
T - the type of the checker implementing this interface (for fluent API chaining)
U - the type of the value being checked
All Known Implementing Classes:
AbstractChecker, Checker, CheckerArray, CheckerBiConsumer, CheckerBiFunction, CheckerBigDecimal, CheckerBigInteger, CheckerBiPredicate, CheckerCallable, CheckerColor, CheckerConsumer, CheckerCurrency, CheckerDate, CheckerDouble, CheckerDuration, CheckerFile, CheckerFloat, CheckerFunction, CheckerGraph, CheckerInteger, CheckerJson, CheckerList, CheckerLocalDate, CheckerLocalDateTime, CheckerLocalTime, CheckerLong, CheckerMap, CheckerMatrix, CheckerPeriod, CheckerPolygon, CheckerPredicate, CheckerRunnable, CheckerSet, CheckerString, CheckerSupplier, CheckerTree, CheckerURI

public interface InterfaceChecker<T extends InterfaceChecker<T,U>,U>
InterfaceChecker defines a contract for checker classes that validate values using predicates. Provides methods for positive and negative assertions with optional custom messages.
  • Method Summary

    Modifier and Type
    Method
    Description
    is(Predicate<U> condition)
    Asserts that the value satisfies the given condition.
    is(Predicate<U> condition, String message)
    Asserts that the value satisfies the given condition, with a custom message on failure.
    isNot(Predicate<U> condition)
    Asserts that the value does not satisfy the given condition.
    isNot(Predicate<U> condition, String message)
    Asserts that the value does not satisfy the given condition, with a custom message on failure.
  • Method Details

    • is

      T is(Predicate<U> condition)
      Asserts that the value satisfies the given condition.
      Parameters:
      condition - the predicate to test the value
      Returns:
      this checker instance for chaining
    • is

      T is(Predicate<U> condition, String message)
      Asserts that the value satisfies the given condition, with a custom message on failure.
      Parameters:
      condition - the predicate to test the value
      message - the custom message for assertion failure
      Returns:
      this checker instance for chaining
    • isNot

      T isNot(Predicate<U> condition)
      Asserts that the value does not satisfy the given condition.
      Parameters:
      condition - the predicate to test the value
      Returns:
      this checker instance for chaining
    • isNot

      T isNot(Predicate<U> condition, String message)
      Asserts that the value does not satisfy the given condition, with a custom message on failure.
      Parameters:
      condition - the predicate to test the value
      message - the custom message for assertion failure
      Returns:
      this checker instance for chaining