Uses of Interface
org.klojang.check.relation.ComposablePredicate
Package
Description
The central package of this Java module.
A collection of functional interfaces that together constitute one category of
checks that can be executed using Klojang Check.
-
Uses of ComposablePredicate in org.klojang.check
Modifier and TypeMethodDescriptionstatic <T> ComposablePredicate
<T> CommonChecks.array()
Verifies that the argument is an array or an array type.static <T> ComposablePredicate
<Result<T>> CommonChecks.available()
Verifies that a result is available.static ComposablePredicate
<String> CommonChecks.blank()
Verifies that the argument isnull
or contains whitespace only.static <T> ComposablePredicate
<T> CommonChecks.deepNotEmpty()
Verifies that the argument is recursively non-empty.static <T> ComposablePredicate
<T> CommonChecks.deepNotNull()
Verifies that the argument is notnull
and, if it is an array, collection or map, that it does not contain anynull
values.static ComposablePredicate
<File> CommonChecks.directory()
Verifies that the argument is an existing directory.static <T> ComposablePredicate
<T> CommonChecks.empty()
Verifies that the argument is empty.static ComposablePredicate
<String> CommonChecks.emptyString()
Verifies that the argument is either null or an empty string.static ComposablePredicate
<File> CommonChecks.fileExists()
Verifies that the specified file is present on the file system.static ComposablePredicate
<Boolean> CommonChecks.no()
Verifies that a condition evaluates tofalse
.static <T> ComposablePredicate
<T> CommonChecks.notEmpty()
Verifies that the argument is not empty.static <T> ComposablePredicate
<T> CommonChecks.notNull()
Verifies that the argument is not null.static <T> ComposablePredicate
<T> CommonChecks.NULL()
Verifies that the argument is null.static ComposablePredicate
<String> CommonChecks.plainInt()
Verifies that a string consists of digits only (without '+' or '-' sign), no leading zeros, and can be parsed into an integer (by implication non-negative).static ComposablePredicate
<String> CommonChecks.plainShort()
Verifies that a string consists of digits only (without '+' or '-' sign), no leading zeros, and can be parsed into a half-precision integer (by implication non-negative).static <T> ComposablePredicate
<Optional<T>> CommonChecks.present()
Verifies that the argument is a non-emptyOptional
.static ComposablePredicate
<File> CommonChecks.readable()
Verifies that a file is readable.static ComposablePredicate
<File> CommonChecks.regularFile()
Verifies that the argument is an existing, regular file.static ComposablePredicate
<File> CommonChecks.symlink()
Verifies that the argument is a symbolic link.static ComposablePredicate
<File> CommonChecks.writable()
Verifies that a file is writable.static ComposablePredicate
<Boolean> CommonChecks.yes()
Verifies that a condition evaluates totrue
. -
Uses of ComposablePredicate in org.klojang.check.relation
Modifier and TypeMethodDescriptiondefault <V> ComposablePredicate
<V> ComposablePredicate.and
(boolean test) Returns a new test combining this test with the specified free-form test.default <V> ComposablePredicate
<V> ComposablePredicate.and
(int subject, IntRelation relation, Quantifier quantifier, int... objects) Returns a new test combining this test and the specified test.default <O,
P extends O, V>
ComposablePredicate<V> ComposablePredicate.and
(Relation<V, O> relation, Quantifier quantifier, P... objects) Returns a new test combining this test and the specified test.default <S,
O, P extends O, V>
ComposablePredicate<V> ComposablePredicate.and
(S subject, Relation<S, O> relation, Quantifier quantifier, P... objects) Returns a new test combining this test and the specified test.default <V> ComposablePredicate
<V> Returns a new test combining this test and the specified test.default <O,
V> ComposablePredicate <V> Returns a new test combining this test and the specified test.default <V> ComposablePredicate
<V> Returns a new test combining this test with the free-form test supplied by the specifiedSupplier
.default <V> ComposablePredicate
<V> Returns a new test combining this test and the specified test.default <O,
V> ComposablePredicate <V> Returns a new test combining this test and the specified test.default <S,
O, V> ComposablePredicate <V> Returns a new test combining this test and the specified test.default <U,
V> ComposablePredicate <V> Returns a new test combining this test and the specified test.default <V> ComposablePredicate
<V> ComposablePredicate.andThat
(int value, IntPredicate test) Returns a new test combining this test and the specified test.default <V> ComposablePredicate
<V> ComposablePredicate.andThat
(int subject, IntRelation relation, int object) Returns a new test combining this test and the specified test.default <S,
O, V> ComposablePredicate <V> Returns a new test combining this test and the specified test.default <U,
V> ComposablePredicate <V> Returns a new test combining this test and the specified test.static <T> ComposablePredicate
<T> Compose.invalid()
Returns aComposablePredicate
that always evaluates tofalse
.static <T> ComposablePredicate
<T> Compose.invalidIf
(T value) Returns aComposablePredicate
that evaluates totrue
if the value to be tested has the specified value.default ComposablePredicate
<T> ComposablePredicate.negated()
Returns the negation of this predicate.default <V> ComposablePredicate
<V> ComposablePredicate.or
(boolean test) Returns a new test combining this test with the specified free-form test.default <V> ComposablePredicate
<V> ComposablePredicate.or
(int subject, IntRelation relation, Quantifier quantifier, int... objects) Returns a new test combining this test and the specified test.default <O,
P extends O, V>
ComposablePredicate<V> ComposablePredicate.or
(Relation<V, O> relation, Quantifier quantifier, P... objects) Returns a new test combining this test and the specified test.default <S,
O, P extends O, V>
ComposablePredicate<V> ComposablePredicate.or
(S subject, Relation<S, O> relation, Quantifier quantifier, P... objects) Returns a new test combining this test and the specified test.default <V> ComposablePredicate
<V> Returns a new test combining this test and the specified test.default <O,
V> ComposablePredicate <V> Returns a new test combining this test and the specified test.default <V> ComposablePredicate
<V> Returns a new test combining this test with the free-form test supplied by the specifiedSupplier
.default <V> ComposablePredicate
<V> Returns a new test combining this test and the specified test.default <O,
V> ComposablePredicate <V> Returns a new test combining this test and the specified test.default <S,
O, V> ComposablePredicate <V> Returns a new test combining this test and the specified test.default <U,
V> ComposablePredicate <V> Returns a new test combining this test and the specified test.default <V> ComposablePredicate
<V> ComposablePredicate.orThat
(int value, IntPredicate test) Returns a new test combining this test and the specified test.default <V> ComposablePredicate
<V> ComposablePredicate.orThat
(int subject, IntRelation relation, int object) Returns a new test combining this test and the specified test.default <S,
O, V> ComposablePredicate <V> Returns a new test combining this test and the specified test.default <U,
V> ComposablePredicate <V> Returns a new test combining this test and the specified test.static <T> ComposablePredicate
<T> Compose.valid()
Returns aComposablePredicate
that always evaluates totrue
.static <T> ComposablePredicate
<T> Compose.validIf
(T value) Returns aComposablePredicate
that evaluates totrue
if the value to be tested has the specified value.static <T> ComposablePredicate
<T> Converts aPredicate
to aComposablePredicate
.static <S,
O> ComposablePredicate <S> Converts aRelation
to aComposablePredicate
.