Uses of Interface
org.klojang.check.relation.IntObjRelation
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 IntObjRelation in org.klojang.check
Modifier and TypeMethodDescriptionstatic <T> IntObjRelation
<T> CommonChecks.indexExclusiveOf()
Alias forCommonChecks.indexOf()
.static <T> IntObjRelation
<T> CommonChecks.indexInclusiveOf()
Verifies that a value can be used as a "from" or "to" index in operations likeArrays.copyOfRange()
,String.substring()
andList.subList()
.static <T> IntObjRelation
<T> CommonChecks.indexOf()
Verifies that the argument is a valid index into the specified array,List
orString
.static IntObjRelation
<int[]> CommonChecks.inIntArray()
Verifies that the argument is present in the specifiedint
array.Modifier and TypeMethodDescription<O> ObjectCheck
<T, X> ObjectCheck.has
(ToIntFunction<T> property, String name, IntObjRelation<O> test, O object) Validates a property of the argument, retrieved through the specified function, using the specified test.<O> ObjectCheck
<T, X> ObjectCheck.has
(ToIntFunction<T> property, IntObjRelation<O> test, O object) Validates a property of the argument, retrieved through the specified function, using the specified test.<O> ObjectCheck
<T, X> ObjectCheck.has
(ToIntFunction<T> property, IntObjRelation<O> test, O object, String message, Object... msgArgs) Validates the argument using the specified test.<O,
X2 extends Exception>
ObjectCheck<T, X> ObjectCheck.has
(ToIntFunction<T> property, IntObjRelation<O> test, O object, Supplier<X2> exception) Validates a property of the argument, retrieved through the specified function, using the specified test.IntCheck.is
(IntObjRelation<O> test, O object) Validates the argument using the specified test.IntCheck.is
(IntObjRelation<O> test, O object, String message, Object... msgArgs) Validates the argument using the specified test.IntCheck.is
(IntObjRelation<O> test, O object, Supplier<X2> exception) Validates the argument using the specified test.IntCheck.isNot
(IntObjRelation<O> test, O object) Validates the argument using the specified test.IntCheck.isNot
(IntObjRelation<O> test, O object, String message, Object... msgArgs) Validates the argument using the specified test.IntCheck.isNot
(IntObjRelation<O> test, O object, Supplier<X2> exception) Validates the argument using the specified test.<O> ObjectCheck
<T, X> ObjectCheck.notHas
(ToIntFunction<T> property, String name, IntObjRelation<O> test, O object) Validates a property of the argument, retrieved through the specified function, using the specified test.<O> ObjectCheck
<T, X> ObjectCheck.notHas
(ToIntFunction<T> property, IntObjRelation<O> test, O object) Validates a property of the argument, retrieved through the specified function, using the specified test.<O> ObjectCheck
<T, X> ObjectCheck.notHas
(ToIntFunction<T> property, IntObjRelation<O> test, O object, String message, Object... msgArgs) Validates a property of the argument using the specified test.<O,
X2 extends Exception>
ObjectCheck<T, X> ObjectCheck.notHas
(ToIntFunction<T> property, IntObjRelation<O> test, O object, Supplier<X2> exception) Validates a property of the argument, retrieved through the specified function, using the specified test. -
Uses of IntObjRelation in org.klojang.check.relation
Modifier and TypeMethodDescriptiondefault IntObjRelation
<S> ObjIntRelation.converse()
Returns the converse of this relation, swapping subject and object in the relationship.default IntObjRelation
<O> IntObjRelation.negate()
Returns the negation of thisIntObjRelation
.Modifier and TypeMethodDescriptionstatic <O> ComposableIntPredicate
Compose.validIntWhen
(IntObjRelation<O> relation, O object) Converts anIntObjRelation
to aComposableIntPredicate
.