Uses of Interface
org.klojang.check.relation.Relation
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 Relation in org.klojang.check
Modifier and TypeMethodDescriptionstatic <E,
C0 extends Collection<E>, C1 extends Collection<? super E>>
Relation<C0, C1> CommonChecks.containedIn()
Verifies that aCollection
argument is a subset or sublist of anotherCollection
.static <O,
S extends Collection<? super O>>
Relation<S, O> CommonChecks.contains()
Verifies that a collection contains a particular value.static <E,
C0 extends Collection<? super E>, C1 extends Collection<E>>
Relation<C0, C1> CommonChecks.containsAll()
Verifies that aCollection
argument contains all the elements of the specified collection.CommonChecks.containsKey()
Verifies that a map contains a particular key.CommonChecks.containsMatch()
Verifies that the argument contains the specified pattern (that is, the pattern can be found somewhere in the string).CommonChecks.containsPattern()
Verifies that the argument contains the specified pattern (that is, the pattern can be found somewhere in the string).CommonChecks.containsValue()
Verifies that a map contains a particular value.static <S,
O extends Collection<? super S>>
Relation<S, O> CommonChecks.elementOf()
Alias forCommonChecks.in()
.CommonChecks.endsWith()
Verifies that the argument ends with the specified substring.CommonChecks.endsWithIC()
Verifies that a string value starts with, ignoring case, the specified string.static <S,
O> Relation <S, O> CommonChecks.EQ()
Verifies that the argument equals the provided value.CommonChecks.equalsIC()
Verifies that a string value equals, ignoring case, the specified string.static <T> Relation
<T, T> CommonChecks.equalTo()
Verifies that the argument equals some value.static <T extends Comparable<T>>
Relation<T, T> CommonChecks.GT()
Verifies that the argument is greater than another value.static <T extends Comparable<T>>
Relation<T, T> CommonChecks.GTE()
Verifies that the argument is greater than or equal to another value.CommonChecks.hasPattern()
Verifies that the argument matches the specified pattern (that is, the pattern fully describes the string).static Relation
<String, CharSequence> CommonChecks.hasSubstring()
Verifies that the argument contains the specified substring.CommonChecks.hasSubstringIC()
Verifies that a string value contains, ignoring case, the specified string.static <S,
O extends Collection<? super S>>
Relation<S, O> CommonChecks.in()
Verifies that the argument is an element of a collection.static <O,
S extends O>
Relation<S, O[]> CommonChecks.inArray()
Verifies that the argument is an element of an array.CommonChecks.instanceOf()
Verifies that the argument is an instance of a particular class or interface.CommonChecks.keyIn()
Verifies the presence of a key within a map.static <T extends Comparable<T>>
Relation<T, T> CommonChecks.LT()
Verifies that the argument is less than another value.static <T extends Comparable<T>>
Relation<T, T> CommonChecks.LTE()
Verifies that the argument is less than or equal to another value.CommonChecks.matches()
Verifies that the argument matches the specified pattern (that is, the pattern fully describes the string).static <T> Relation
<T, T> CommonChecks.nullOr()
Verifies that the argument is either null or equals a particular value.CommonChecks.numerical()
Verifies that a string can be parsed into a number of the specified type without loss of information.CommonChecks.parsableAs()
Verifies that a string can be parsed into aNumber
of the specified type without loss of information.static <S,
O> Relation <S, O> CommonChecks.sameAs()
Verifies that a value references the same object as another value.CommonChecks.startsWith()
Verifies that the argument starts with the specified substring.CommonChecks.startsWithIC()
Verifies that a string value starts with, ignoring case, the specified string.CommonChecks.substringOf()
Verifies that the argument is a substring of the specified string.CommonChecks.subtypeOf()
Verifies that the argument is a subtype of the provided type.CommonChecks.supertypeOf()
Verifies that the argument is a supertype of the provided type.CommonChecks.valueIn()
Verifies the presence of a value within a map.Modifier and TypeMethodDescriptionIntCheck.has
(IntFunction<P> property, String name, Relation<P, O> test, O object) Validates a property of the argument.IntCheck.has
(IntFunction<P> property, Relation<P, O> test, O object) Validates a property of the argument.IntCheck.has
(IntFunction<P> property, Relation<P, O> test, O object, String message, Object... msgArgs) Validates a property of the argument.IntCheck.has
(IntFunction<P> property, Relation<P, O> test, O object, Supplier<X2> exception) Validates a property of the argument.<P,
O> ObjectCheck <T, X> Validates a property of the argument, retrieved through the specified function, using the specified test.<P,
O> ObjectCheck <T, X> Validates a property of the argument, retrieved through the specified function, using the specified test.<P,
O> ObjectCheck <T, X> ObjectCheck.has
(Function<T, P> property, Relation<P, O> test, O object, String message, Object... msgArgs) Validates a property of the argument using the specified test.<P,
O, X2 extends Exception>
ObjectCheck<T, X> Validates a property of the argument, retrieved through the specified function, using the specified test.<O> ObjectCheck
<T, X> Validates the argument using the specified test.<O> ObjectCheck
<T, X> Validates the argument using the specified test.<O,
X2 extends Exception>
ObjectCheck<T, X> Validates the argument using the specified test.<O> ObjectCheck
<T, X> Validates the argument using the specified test.<O> ObjectCheck
<T, X> Validates the argument using the specified test.<O,
X2 extends Exception>
ObjectCheck<T, X> Validates the argument using the specified test.IntCheck.notHas
(IntFunction<P> property, String name, Relation<P, O> test, O object) Validates a property of the argument.IntCheck.notHas
(IntFunction<P> property, Relation<P, O> test, O object) Validates a property of the argument.IntCheck.notHas
(IntFunction<P> property, Relation<P, O> test, O object, String message, Object... msgArgs) Validates a property of the argument.IntCheck.notHas
(IntFunction<P> property, Relation<P, O> test, O object, Supplier<X2> exception) Validates a property of the argument.<P,
O> ObjectCheck <T, X> Validates a property of the argument, retrieved through the specified function, using the specified test.<P,
O> ObjectCheck <T, X> Validates a property of the argument, retrieved through the specified function, using the specified test.<P,
O> ObjectCheck <T, X> ObjectCheck.notHas
(Function<T, P> property, Relation<P, O> test, O object, String message, Object... msgArgs) Validates a property of the argument using the specified test.<P,
O, X2 extends Exception>
ObjectCheck<T, X> Validates a property of the argument, retrieved through the specified function, using the specified test. -
Uses of Relation in org.klojang.check.relation
Modifier and TypeMethodDescriptionRelation.converse()
Returns the converse of this relation, swapping subject and object in the relationship.Relation.negate()
Returns the negation of thisRelation
.Modifier and TypeMethodDescriptiondefault <S,
O, P extends O>
ComposableIntPredicateComposableIntPredicate.and
(S subject, Relation<S, O> relation, Quantifier quantifier, P... 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 <O,
V> ComposablePredicate <V> Returns a new test combining this test and the specified test.default <S,
O> ComposableIntPredicate 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 <S,
O> ComposableIntPredicate 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 <S,
O, P extends O>
ComposableIntPredicateComposableIntPredicate.or
(S subject, Relation<S, O> relation, Quantifier quantifier, P... 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 <O,
V> ComposablePredicate <V> Returns a new test combining this test and the specified test.default <S,
O> ComposableIntPredicate 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 <S,
O> ComposableIntPredicate 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.static <S,
O> ComposablePredicate <S> Converts aRelation
to aComposablePredicate
.