Interface Criterion<T>

Type Parameters:
T - type of testable objects
All Known Implementing Classes:
AndCriterion, InstanceOfCriterion, NotCriterion, OrCriterion

public interface Criterion<T>

An interface to define a criterion (usually for use in some kind of filtering method).

The concrete implementation should specify whether it can be used in several threads concurrently or not.

Author:
agz
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isSatisfiedBy(T object)
    Returns whether the specified object satisfies this criterion.
  • Method Details

    • isSatisfiedBy

      boolean isSatisfiedBy(T object)
      Returns whether the specified object satisfies this criterion.

      Implementations have to accept null-values without throwing exceptions.

      Parameters:
      object - object to test
      Returns:
      whether the specified object satisfies this criterion