Package org.klojang.check.relation


package org.klojang.check.relation
A collection of functional interfaces that together constitute one category of checks that can be executed using Klojang Check. The other category consists of the twin interfaces of Predicate and IntPredicate from the JDK itself. This package also contains extensions of these two interfaces: ComposablePredicate and ComposableIntPredicate. They function as a bridge to the relational interfaces of this package. See ComposablePredicate for more information.

The Relation interface and its sister interfaces in this package assess whether a certain type of relation exists between one object and another. The object being assessed is called the subject of the relationship, and the object that it is compared against is called the object of the relationship. If the subject does indeed have the specified relation to the object, the relation is said to exist. For example, if x is a Collection and y is an element of it, then the contains relation (Collection::contains) exists between x and y.

  • Class
    Description
    An extension of IntPredicate that acts as a bridge between IntPredicate and the relational interfaces in this package.
    An extension of Predicate that acts as a bridge between Predicate and the relational interfaces in this package.
    Utility methods that assist in the creation of new checks by combining multiple individual checks.
    Defines a relationship between an integer and an object.
    Defines a relationship between two integers.
    Defines some kind of relationship between an object and an integer.
    Symbolic constants for logical quantifiers.
    Defines a relationship between two objects.