Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- abs() - Static method in class org.klojang.check.CommonProperties
-
Returns the absolute value of an
int
argument. - ABS() - Static method in class org.klojang.check.CommonProperties
-
Returns the absolute value of a
Number
. - accept(int) - Method in interface org.klojang.check.fallible.FallibleIntConsumer
-
Performs this operation on the given argument.
- accept(T) - Method in interface org.klojang.check.fallible.FallibleConsumer
-
Performs this operation on the given argument.
- ALL - Enum constant in enum class org.klojang.check.relation.Quantifier
-
Symbolic constant for the universal quantifier (∀).
- allOf() - Static method in enum class org.klojang.check.relation.Quantifier
-
Returns
Quantifier.ALL
. - and(boolean) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test with the specified free-form test.
- and(boolean) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test with the specified free-form test.
- and(int) - Method in class org.klojang.check.IntCheck
-
Returns a new
IntCheck
instance for validating the specifiedint
value. - and(int) - Method in class org.klojang.check.ObjectCheck
-
Returns an
IntCheck
instance for validating the specified value. - and(int, String) - Method in class org.klojang.check.IntCheck
-
Returns a new
IntCheck
instance for validating the specified value. - and(int, String) - Method in class org.klojang.check.ObjectCheck
-
Returns an
IntCheck
instance for validating the specified value. - and(int, IntRelation, Quantifier, int...) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- and(int, IntRelation, Quantifier, int...) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- and(IntRelation, Quantifier, int...) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- and(Relation<V, O>, Quantifier, P...) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- and(S, Relation<S, O>, Quantifier, P...) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- and(S, Relation<S, O>, Quantifier, P...) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- and(T) - Method in class org.klojang.check.IntCheck
-
Returns a new
ObjectCheck
instance for validating the specified value. - and(T, String) - Method in class org.klojang.check.IntCheck
-
Returns a new
ObjectCheck
instance for validating the specified value. - and(U) - Method in class org.klojang.check.ObjectCheck
-
Returns a new
ObjectCheck
instance for validating the specified value; supposedly another value than the one validated by this instance. - and(U, String) - Method in class org.klojang.check.ObjectCheck
-
Returns a new
ObjectCheck
instance for validating the specified value; supposedly another value than the one validated by this instance. - andAlso(IntPredicate) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- andAlso(Predicate<?>) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- andAlso(IntRelation, int) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- andAlso(Relation<?, O>, O) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- andEval(Supplier<Boolean>) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test with the free-form test supplied by the specified
Supplier
. - andEval(Supplier<Boolean>) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test with the free-form test supplied by the specified
Supplier
. - andNot(int, IntPredicate) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- andNot(int, IntRelation, int) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- andNot(IntPredicate) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- andNot(Predicate<?>) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- andNot(IntRelation, int) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- andNot(Relation<?, O>, O) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- andNot(S, Relation<S, O>, O) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- andNot(S, Relation<S, O>, O) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- andNot(T, Predicate<T>) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- andNot(U, Predicate<U>) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- andThat(int, IntPredicate) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- andThat(int, IntPredicate) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- andThat(int, IntRelation, int) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- andThat(int, IntRelation, int) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- andThat(S, Relation<S, O>, O) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- andThat(S, Relation<S, O>, O) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- andThat(T, Predicate<T>) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- andThat(U, Predicate<U>) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- AND vs. OR Compositions - Search tag in interface org.klojang.check.relation.ComposablePredicate
- Section
- ANY - Enum constant in enum class org.klojang.check.relation.Quantifier
-
Symbolic constant for the existential quantifier (∃).
- anyOf() - Static method in enum class org.klojang.check.relation.Quantifier
-
Returns
Quantifier.ANY
. - apply(int) - Method in interface org.klojang.check.fallible.FallibleIntFunction
-
Applies this function to the given argument.
- apply(T) - Method in interface org.klojang.check.fallible.FallibleFunction
-
Calculates a value for the provided argument.
- apply(T) - Method in interface org.klojang.check.fallible.FallibleToIntFunction
-
Calculates a value for the provided argument.
- apply(T, U) - Method in interface org.klojang.check.fallible.FallibleBiFunction
-
Applies this function to the given arguments.
- applyAsInt(int) - Method in interface org.klojang.check.fallible.FallibleIntUnaryOperator
-
Applies this operator to the given operand.
- ARGUMENT - Static variable in class org.klojang.check.CommonExceptions
-
Shortcut for
IllegalArgumentException::new
. - array() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is an array or an array type.
- ARRAY - Static variable in class org.klojang.check.Tag
-
"array"
- available() - Static method in class org.klojang.check.CommonChecks
-
Verifies that a result is available.
B
- BEAN - Static variable in class org.klojang.check.Tag
-
"bean"
- blank() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is
null
or contains whitespace only. - box() - Static method in class org.klojang.check.CommonProperties
-
Returns the boxed version of the argument.
C
- CAPACITY - Static variable in class org.klojang.check.Tag
-
"capacity"
- Check - Class in org.klojang.check
-
The central class of this Java module.
- CLASS - Static variable in class org.klojang.check.Tag
-
"class"
- COLLECTION - Static variable in class org.klojang.check.Tag
-
"collection"
- CommonChecks - Class in org.klojang.check
-
Defines various common checks on arguments, variables, object state, program input, etc.
- Common Checks - Search tag in module org.klojang.check
- Section
- CommonExceptions - Class in org.klojang.check
-
Provides factories for some commonly thrown exceptions.
- CommonProperties - Class in org.klojang.check
-
Defines various functions that can optionally be passed as the first argument to the
has(...)
andnotHas(...)
methods ofIntCheck
andObjectCheck
. - ComposableIntPredicate - Interface in org.klojang.check.relation
-
An extension of
IntPredicate
that acts as a bridge betweenIntPredicate
and the relational interfaces in this package. - ComposablePredicate<T> - Interface in org.klojang.check.relation
-
An extension of
Predicate
that acts as a bridge betweenPredicate
and the relational interfaces in this package. - Compose - Class in org.klojang.check.relation
-
Utility methods that assist in the creation of new checks by combining multiple individual checks.
- constants() - Static method in class org.klojang.check.CommonProperties
-
Returns the constants of an enum class.
- containedIn() - Static method in class org.klojang.check.CommonChecks
-
Verifies that a
Collection
argument is a subset or sublist of anotherCollection
. - contains() - Static method in class org.klojang.check.CommonChecks
-
Verifies that a collection contains a particular value.
- containsAll() - Static method in class org.klojang.check.CommonChecks
-
Verifies that a
Collection
argument contains all the elements of the specified collection. - containsKey() - Static method in class org.klojang.check.CommonChecks
-
Verifies that a map contains a particular key.
- containsMatch() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument contains the specified pattern (that is, the pattern can be found somewhere in the string).
- containsPattern() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument contains the specified pattern (that is, the pattern can be found somewhere in the string).
- containsValue() - Static method in class org.klojang.check.CommonChecks
-
Verifies that a map contains a particular value.
- converse() - Method in interface org.klojang.check.relation.IntObjRelation
-
Returns the converse of this relation, swapping subject and object in the relationship.
- converse() - Method in interface org.klojang.check.relation.IntRelation
-
Returns the converse of this relation, swapping subject and object in the relationship.
- converse() - Method in interface org.klojang.check.relation.ObjIntRelation
-
Returns the converse of this relation, swapping subject and object in the relationship.
- converse() - Method in interface org.klojang.check.relation.Relation
-
Returns the converse of this relation, swapping subject and object in the relationship.
- CorruptCheckException - Exception Class in org.klojang.check
-
Thrown if a check was incorrectly specified.
- CorruptCheckException(String) - Constructor for exception class org.klojang.check.CorruptCheckException
-
Instantiates a new
CorruptCheckException
with the specified error message. - Custom Checks - Search tag in module org.klojang.check
- Section
- Custom Error Messages - Search tag in module org.klojang.check
- Section
D
- DATA - Static variable in class org.klojang.check.Tag
-
"data"
- deepNotEmpty() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is recursively non-empty.
- deepNotNull() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is not
null
and, if it is an array, collection or map, that it does not contain anynull
values. - directory() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is an existing directory.
- Documentation - Search tag in module org.klojang.check
- Section
- DUPLICATE - Static variable in class org.klojang.check.CommonExceptions
-
Shortcut for
DuplicateValueException::new
. - duplicateElement() - Static method in class org.klojang.check.CommonExceptions
-
Returns a
Supplier
of aDuplicateValueException
. - duplicateElement(Object) - Static method in class org.klojang.check.CommonExceptions
-
Returns a
Supplier
of aDuplicateValueException
. - duplicateKey() - Static method in class org.klojang.check.CommonExceptions
-
Returns a
Supplier
of aDuplicateValueException
. - duplicateKey(Object) - Static method in class org.klojang.check.CommonExceptions
-
Returns a
Supplier
of aDuplicateValueException
. - duplicateValue(String) - Static method in class org.klojang.check.CommonExceptions
-
Returns a
Supplier
of aDuplicateValueException
. - DuplicateValueException - Exception Class in org.klojang.check.aux
- DuplicateValueException() - Constructor for exception class org.klojang.check.aux.DuplicateValueException
-
Default constructor.
- DuplicateValueException(String) - Constructor for exception class org.klojang.check.aux.DuplicateValueException
-
Creates a new
DuplicateValueException
with the specified message. - DuplicateValueException(DuplicateValueException.Usage) - Constructor for exception class org.klojang.check.aux.DuplicateValueException
-
Creates a new
DuplicateValueException
. - DuplicateValueException(DuplicateValueException.Usage, Object) - Constructor for exception class org.klojang.check.aux.DuplicateValueException
-
Creates a new
DuplicateValueException
for the specified value. - DuplicateValueException(DuplicateValueException.Usage, Collection<Object>) - Constructor for exception class org.klojang.check.aux.DuplicateValueException
-
Creates a new
DuplicateValueException
for the specified values. - DuplicateValueException.Usage - Enum Class in org.klojang.check.aux
-
Symbolic constants for the intended usage of the value.
E
- ELEMENT - Enum constant in enum class org.klojang.check.aux.DuplicateValueException.Usage
-
The value was meant to be inserted into a
Set
. - ELEMENT - Static variable in class org.klojang.check.CommonExceptions
-
Shortcut for
NoSuchElementException::new
. - ELEMENT - Static variable in class org.klojang.check.Tag
-
"element"
- elementOf() - Static method in class org.klojang.check.CommonChecks
-
Alias for
CommonChecks.in()
. - empty() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is empty.
- Emptyable - Interface in org.klojang.check.aux
-
Marks objects that can meaningfully be said to be empty.
- emptyString() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is either null or an empty string.
- endsWith() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument ends with the specified substring.
- endsWithIC() - Static method in class org.klojang.check.CommonChecks
-
Verifies that a string value starts with, ignoring case, the specified string.
- eq() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument equals the specified
int
value. - EQ() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument equals the provided value.
- equals(Object) - Method in class org.klojang.check.aux.Result
-
Returns
true
if the specified object is aResult
that either is thisResult
or contains the same value. - equalsIC() - Static method in class org.klojang.check.CommonChecks
-
Verifies that a string value equals, ignoring case, the specified string.
- equalTo() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument equals some value.
- even() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is an even integer.
- EXCEPTION - Static variable in class org.klojang.check.Tag
-
"exception"
- exists(int, int) - Method in interface org.klojang.check.relation.IntRelation
-
Determines whether
subject
relates toobject
in the manner defined by thisIntRelation
. - exists(int, O) - Method in interface org.klojang.check.relation.IntObjRelation
-
Returns whether the relationship between
subject
andobject
exists. - exists(S, int) - Method in interface org.klojang.check.relation.ObjIntRelation
-
Whether this
ObjIntRelation
is found to exist between the providedsubject
andobject
. - exists(S, O) - Method in interface org.klojang.check.relation.Relation
-
Determines whether the two arguments have the relation that the implementation attempts to establish.
F
- fail(String, Object...) - Static method in class org.klojang.check.Check
-
Always throws an
IllegalArgumentException
with the specified message and message arguments. - fail(Function<String, X>, String, Object...) - Static method in class org.klojang.check.Check
-
Always throws the exception produced by the specified exception factory with the specified message and message arguments.
- fail(Supplier<X>) - Static method in class org.klojang.check.Check
-
Always throws the exception supplied by the specified
Supplier
. - FallibleBiFunction<T,
U, - Interface in org.klojang.check.fallibleR, X> -
An alternative to the
BiFunction
interface that allows the functional method to throw a checked exception. - FallibleConsumer<T,
X> - Interface in org.klojang.check.fallible -
An alternative to the
Consumer
interface that allows the functional method to throw a checked exception. - FallibleFunction<T,
R, - Interface in org.klojang.check.fallibleX> -
An alternative to the
Function
interface that allows the functional method to throw a checked exception. - FallibleIntConsumer<X> - Interface in org.klojang.check.fallible
-
An alternative to the
IntConsumer
interface that allows the functional method to throw a checked exception. - FallibleIntFunction<R,
X> - Interface in org.klojang.check.fallible -
An alternative to the
IntFunction
interface that allows the functional method to throw a checked exception. - FallibleIntSupplier<X> - Interface in org.klojang.check.fallible
-
An alternative to the
IntSupplier
interface that allows the functional method to throw a checked exception. - FallibleIntUnaryOperator<X> - Interface in org.klojang.check.fallible
-
An alternative to the
IntUnaryOperator
interface that allows the functional method to throw a checked exception. - FallibleSupplier<T,
X> - Interface in org.klojang.check.fallible -
An alternative to the
Supplier
interface that allows the functional method to throw a checked exception. - FallibleToIntFunction<T,
X> - Interface in org.klojang.check.fallible -
An alternative to the
ToIntFunction
interface that allows the functional method to throw a checked exception. - FILE - Static variable in class org.klojang.check.CommonExceptions
-
Shortcut for
FileNotFoundException::new
. - FILE - Static variable in class org.klojang.check.Tag
-
"file"
- fileExists() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the specified file is present on the file system.
- fileNotFound(File) - Static method in class org.klojang.check.CommonExceptions
-
Returns a
Supplier
of aFileNotFoundException
. - fileNotFound(String) - Static method in class org.klojang.check.CommonExceptions
-
Returns a
Supplier
of aFileNotFoundException
. - FILTER - Static variable in class org.klojang.check.Tag
-
"filter"
- FROM_INDEX - Static variable in class org.klojang.check.Tag
-
"from-index"
- fromTo(int, int, int) - Static method in class org.klojang.check.Check
-
All-in-one check for the provided size, from-index and to-index.
- fromTo(String, int, int) - Static method in class org.klojang.check.Check
-
All-in-one check for the provided string, from-index and to-index.
- fromTo(List<?>, int, int) - Static method in class org.klojang.check.Check
-
All-in-one check for the provided list, from-index and to-index.
- fromTo(T[], int, int) - Static method in class org.klojang.check.Check
-
All-in-one check for the provided array, from-index and to-index.
G
- Generics - Search tag in interface org.klojang.check.relation.ComposablePredicate
- Section
- get() - Method in class org.klojang.check.aux.Result
-
Returns the result.
- get() - Method in interface org.klojang.check.fallible.FallibleSupplier
-
Gets a result.
- getAsInt() - Method in interface org.klojang.check.fallible.FallibleIntSupplier
-
Gets a result.
- gt() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is greater than the specified
int
value. - GT() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is greater than another value.
- gte() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is greater than or equal to the specified
int
value. - GTE() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is greater than or equal to another value.
H
- Handling Validation Errors - Search tag in module org.klojang.check
- Section
- has(Function<T, P>, String, Predicate<P>) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- has(Function<T, P>, String, Relation<P, O>, O) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- has(Function<T, P>, Predicate<P>) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- has(Function<T, P>, Predicate<P>, String, Object...) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument using the specified test.
- has(Function<T, P>, Predicate<P>, Supplier<X2>) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- has(Function<T, P>, Relation<P, O>, O) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- has(Function<T, P>, Relation<P, O>, O, String, Object...) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument using the specified test.
- has(Function<T, P>, Relation<P, O>, O, Supplier<X2>) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- has(IntFunction<P>, String, Predicate<P>) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- has(IntFunction<P>, String, Relation<P, O>, O) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- has(IntFunction<P>, Predicate<P>) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- has(IntFunction<P>, Predicate<P>, String, Object...) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- has(IntFunction<P>, Predicate<P>, Supplier<X2>) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- has(IntFunction<P>, Relation<P, O>, O) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- has(IntFunction<P>, Relation<P, O>, O, String, Object...) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- has(IntFunction<P>, Relation<P, O>, O, Supplier<X2>) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- has(IntUnaryOperator, String, IntPredicate) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- has(IntUnaryOperator, String, IntRelation, int) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- has(IntUnaryOperator, IntPredicate) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- has(IntUnaryOperator, IntPredicate, String, Object...) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- has(IntUnaryOperator, IntPredicate, Supplier<X2>) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- has(IntUnaryOperator, IntRelation, int) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- has(IntUnaryOperator, IntRelation, int, String, Object...) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- has(IntUnaryOperator, IntRelation, int, Supplier<X2>) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- has(ToIntFunction<T>, String, IntPredicate) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- has(ToIntFunction<T>, String, IntObjRelation<O>, O) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- has(ToIntFunction<T>, String, IntRelation, int) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- has(ToIntFunction<T>, IntPredicate) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- has(ToIntFunction<T>, IntPredicate, String, Object...) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument using the specified test.
- has(ToIntFunction<T>, IntPredicate, Supplier<X2>) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- has(ToIntFunction<T>, IntObjRelation<O>, O) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- has(ToIntFunction<T>, IntObjRelation<O>, O, String, Object...) - Method in class org.klojang.check.ObjectCheck
-
Validates the argument using the specified test.
- has(ToIntFunction<T>, IntObjRelation<O>, O, Supplier<X2>) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- has(ToIntFunction<T>, IntRelation, int) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- has(ToIntFunction<T>, IntRelation, int, String, Object...) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- has(ToIntFunction<T>, IntRelation, int, Supplier<X2>) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- hashCode() - Method in class org.klojang.check.aux.Result
-
Returns the hashcode of the value contained in this
Result
, or 0 if no result was available. - hasPattern() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument matches the specified pattern (that is, the pattern fully describes the string).
- hasSubstring() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument contains the specified substring.
- hasSubstringIC() - Static method in class org.klojang.check.CommonChecks
-
Verifies that a string value contains, ignoring case, the specified string.
I
- ifAvailable(FallibleConsumer<T, X>) - Method in class org.klojang.check.aux.Result
-
If available, passes the result to the specified consumer; else does nothing.
- illegalArgument() - Static method in class org.klojang.check.CommonExceptions
-
Returns a
Supplier
of anIllegalArgumentException
. - illegalArgument(String) - Static method in class org.klojang.check.CommonExceptions
-
Returns a
Supplier
of anIllegalArgumentException
. - illegalState() - Static method in class org.klojang.check.CommonExceptions
-
Returns a
Supplier
of anIllegalStateException
. - illegalState(String) - Static method in class org.klojang.check.CommonExceptions
-
Returns a
Supplier
of anIllegalStateException
. - in() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is an element of a collection.
- IN - Static variable in class org.klojang.check.Tag
-
"in"
- inArray() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is an element of an array.
- INDEX - Static variable in class org.klojang.check.CommonExceptions
-
Shortcut for
IndexOutOfBoundsException::new
. - INDEX - Static variable in class org.klojang.check.Tag
-
"index"
- indexExclusiveOf() - Static method in class org.klojang.check.CommonChecks
-
Alias for
CommonChecks.indexOf()
. - indexInclusiveOf() - Static method in class org.klojang.check.CommonChecks
-
Verifies that a value can be used as a "from" or "to" index in operations like
Arrays.copyOfRange()
,String.substring()
andList.subList()
. - indexOf() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is a valid index into the specified array,
List
orString
. - indexOutOfBounds(int) - Static method in class org.klojang.check.CommonExceptions
-
Returns a
Supplier
of anIndexOutOfBoundsException
. - indexOutOfBounds(String) - Static method in class org.klojang.check.CommonExceptions
-
Returns a
Supplier
of anIndexOutOfBoundsException
. - inIntArray() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is present in the specified
int
array. - INPUT - Static variable in class org.klojang.check.Tag
-
"input"
- instanceOf() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is an instance of a particular class or interface.
- IntCheck<X> - Class in org.klojang.check
-
Facilitates the validation of
int
values. - IntCheck and ObjectCheck - Search tag in module org.klojang.check
- Section
- IntObjRelation<O> - Interface in org.klojang.check.relation
-
Defines a relationship between an integer and an object.
- IntRelation - Interface in org.klojang.check.relation
-
Defines a relationship between two integers.
- invalid() - Static method in class org.klojang.check.relation.Compose
-
Returns a
ComposablePredicate
that always evaluates tofalse
. - invalidIf(T) - Static method in class org.klojang.check.relation.Compose
-
Returns a
ComposablePredicate
that evaluates totrue
if the value to be tested has the specified value. - invalidInt() - Static method in class org.klojang.check.relation.Compose
-
Returns a
ComposableIntPredicate
that always evaluates tofalse
. - invalidIntIf(int) - Static method in class org.klojang.check.relation.Compose
-
Returns a
ComposablePredicate
that evaluates totrue
if the value to be tested has the specified value. - IO - Static variable in class org.klojang.check.CommonExceptions
-
Shortcut for
IOException::new
. - ioException() - Static method in class org.klojang.check.CommonExceptions
-
Returns a
Supplier
of anIOException
. - ioException(String) - Static method in class org.klojang.check.CommonExceptions
-
Returns a
Supplier
of anIOException
. - is(IntPredicate) - Method in class org.klojang.check.IntCheck
-
Validates the argument using the specified test.
- is(IntPredicate, String, Object...) - Method in class org.klojang.check.IntCheck
-
Validates the argument using the specified test.
- is(IntPredicate, Supplier<X2>) - Method in class org.klojang.check.IntCheck
-
Validates the argument using the specified test.
- is(Predicate<T>) - Method in class org.klojang.check.ObjectCheck
-
Validates the argument using the specified test.
- is(Predicate<T>, String, Object...) - Method in class org.klojang.check.ObjectCheck
-
Validates the argument using the specified test.
- is(Predicate<T>, Supplier<X2>) - Method in class org.klojang.check.ObjectCheck
-
Validates the argument using the specified test.
- is(IntObjRelation<O>, O) - Method in class org.klojang.check.IntCheck
-
Validates the argument using the specified test.
- is(IntObjRelation<O>, O, String, Object...) - Method in class org.klojang.check.IntCheck
-
Validates the argument using the specified test.
- is(IntObjRelation<O>, O, Supplier<X2>) - Method in class org.klojang.check.IntCheck
-
Validates the argument using the specified test.
- is(IntRelation, int) - Method in class org.klojang.check.IntCheck
-
Validates the argument using the specified test.
- is(IntRelation, int, String, Object...) - Method in class org.klojang.check.IntCheck
-
Validates the argument using the specified test.
- is(IntRelation, int, Supplier<X2>) - Method in class org.klojang.check.IntCheck
-
Validates the argument using the specified test.
- is(Relation<T, O>, O) - Method in class org.klojang.check.ObjectCheck
-
Validates the argument using the specified test.
- is(Relation<T, O>, O, String, Object...) - Method in class org.klojang.check.ObjectCheck
-
Validates the argument using the specified test.
- is(Relation<T, O>, O, Supplier<X2>) - Method in class org.klojang.check.ObjectCheck
-
Validates the argument using the specified test.
- isAvailable() - Method in class org.klojang.check.aux.Result
-
Returns
true
if the operation that produced thisResult
successfully computed the result. - isAvailableAndNotNull() - Method in class org.klojang.check.aux.Result
-
Returns
true
if the operation that produced thisResult
successfully computed the result and the result value was notnull
. - isAvailableAndNull() - Method in class org.klojang.check.aux.Result
-
Returns
true
if the operation that produced thisResult
successfully computed the result and the result value wasnull
. - isDeepNotEmpty() - Method in interface org.klojang.check.aux.Emptyable
-
Returns
true
if this is a recursively non-empty instance. - isDeepNotEmpty() - Method in class org.klojang.check.aux.Result
-
Returns
true
if a result is available and the result value is recursively non-empty as per thedeepNotEmpty()
test. - isEmpty() - Method in interface org.klojang.check.aux.Emptyable
-
Returns
true
if this is an empty instance. - isEmpty() - Method in class org.klojang.check.aux.Result
-
Returns
true
if no result is available or if the result value is empty as per theempty()
test. - isNot(IntPredicate) - Method in class org.klojang.check.IntCheck
-
Validates the argument using the specified test.
- isNot(IntPredicate, String, Object...) - Method in class org.klojang.check.IntCheck
-
Validates the argument using the specified test.
- isNot(IntPredicate, Supplier<X2>) - Method in class org.klojang.check.IntCheck
-
Validates the argument using the specified test.
- isNot(Predicate<T>) - Method in class org.klojang.check.ObjectCheck
-
Validates the argument using the specified test.
- isNot(Predicate<T>, String, Object...) - Method in class org.klojang.check.ObjectCheck
-
Validates the argument using the specified test.
- isNot(Predicate<T>, Supplier<X2>) - Method in class org.klojang.check.ObjectCheck
-
Validates the argument using the specified test.
- isNot(IntObjRelation<O>, O) - Method in class org.klojang.check.IntCheck
-
Validates the argument using the specified test.
- isNot(IntObjRelation<O>, O, String, Object...) - Method in class org.klojang.check.IntCheck
-
Validates the argument using the specified test.
- isNot(IntObjRelation<O>, O, Supplier<X2>) - Method in class org.klojang.check.IntCheck
-
Validates the argument using the specified test.
- isNot(IntRelation, int) - Method in class org.klojang.check.IntCheck
-
Validates the argument using the specified test.
- isNot(IntRelation, int, String, Object...) - Method in class org.klojang.check.IntCheck
-
Validates the argument using the specified test.
- isNot(IntRelation, int, Supplier<X2>) - Method in class org.klojang.check.IntCheck
-
Validates the argument using the specified test.
- isNot(Relation<T, O>, O) - Method in class org.klojang.check.ObjectCheck
-
Validates the argument using the specified test.
- isNot(Relation<T, O>, O, String, Object...) - Method in class org.klojang.check.ObjectCheck
-
Validates the argument using the specified test.
- isNot(Relation<T, O>, O, Supplier<X2>) - Method in class org.klojang.check.ObjectCheck
-
Validates the argument using the specified test.
- isUnavailable() - Method in class org.klojang.check.aux.Result
-
Returns
true
if the operation that produced thisResult
could not compute a proper result.
K
- key() - Static method in class org.klojang.check.CommonProperties
-
Returns the key of a
Map
entry. - KEY - Enum constant in enum class org.klojang.check.aux.DuplicateValueException.Usage
-
The value was meant to be used as a map key, or possibly some record-like structure.
- KEY - Static variable in class org.klojang.check.Tag
-
"key"
- keyIn() - Static method in class org.klojang.check.CommonChecks
-
Verifies the presence of a key within a map.
- keySet() - Static method in class org.klojang.check.CommonProperties
-
Returns the keys of a
Map
argument.
L
- length() - Static method in class org.klojang.check.CommonProperties
-
A function that returns the length of an array argument.
- LENGTH - Static variable in class org.klojang.check.Tag
-
"length"
- LIST - Static variable in class org.klojang.check.Tag
-
"list"
- listSize() - Static method in class org.klojang.check.CommonProperties
-
Returns the size of a
List
argument. - lt() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is less than the specified
int
value. - LT() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is less than another value.
- lte() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is less than or equal to the specified
int
value. - LTE() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is less than or equal to another value.
M
- MAP - Static variable in class org.klojang.check.Tag
-
"map"
- mapSize() - Static method in class org.klojang.check.CommonProperties
-
Returns the size of a
Map
argument. - mapToObj(FallibleIntFunction<R, X2>) - Method in class org.klojang.check.IntCheck
-
Passes the validated value to the specified function and returns the value it computes.
- matches() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument matches the specified pattern (that is, the pattern fully describes the string).
- MESSAGE - Static variable in class org.klojang.check.Tag
-
"message"
- multipleOf() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is a multiple of the specified
int
value.
N
- name() - Static method in class org.klojang.check.CommonProperties
-
Returns the name of an enum constant.
- NAME - Static variable in class org.klojang.check.Tag
-
"name"
- ne() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument does not equal the specified
int
value. - negate() - Method in interface org.klojang.check.relation.IntObjRelation
-
Returns the negation of this
IntObjRelation
. - negate() - Method in interface org.klojang.check.relation.IntRelation
-
Returns the negation of this
IntRelation
. - negate() - Method in interface org.klojang.check.relation.ObjIntRelation
-
Returns the negation of the this
ObjIntRelation
. - negate() - Method in interface org.klojang.check.relation.Relation
-
Returns the negation of this
Relation
. - negated() - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns the negation of this predicate.
- negated() - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns the negation of this predicate.
- negative() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is a negative integer.
- no() - Static method in class org.klojang.check.CommonChecks
-
Verifies that a condition evaluates to
false
. - NONE - Enum constant in enum class org.klojang.check.relation.Quantifier
-
Symbolic constant for the negation of the existential quantifier (¬∃).
- noneOf() - Static method in enum class org.klojang.check.relation.Quantifier
-
Returns
Quantifier.NONE
. - noSuchElement() - Static method in class org.klojang.check.CommonExceptions
-
Returns a
Supplier
of aNoSuchElementException
. - noSuchElement(String) - Static method in class org.klojang.check.CommonExceptions
-
Returns a
Supplier
of aNoSuchElementException
. - notAvailable() - Static method in class org.klojang.check.aux.Result
-
Returns a special
Result
instance signifying the absence of a result. - notEmpty() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is not empty.
- notHas(Function<T, P>, String, Predicate<P>) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- notHas(Function<T, P>, String, Relation<P, O>, O) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- notHas(Function<T, P>, Predicate<P>) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- notHas(Function<T, P>, Predicate<P>, String, Object...) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument using the specified test.
- notHas(Function<T, P>, Predicate<P>, Supplier<X2>) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- notHas(Function<T, P>, Relation<P, O>, O) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- notHas(Function<T, P>, Relation<P, O>, O, String, Object...) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument using the specified test.
- notHas(Function<T, P>, Relation<P, O>, O, Supplier<X2>) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- notHas(IntFunction<P>, String, Predicate<P>) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- notHas(IntFunction<P>, String, Relation<P, O>, O) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- notHas(IntFunction<P>, Predicate<P>) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- notHas(IntFunction<P>, Predicate<P>, String, Object...) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- notHas(IntFunction<P>, Predicate<P>, Supplier<X2>) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- notHas(IntFunction<P>, Relation<P, O>, O) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- notHas(IntFunction<P>, Relation<P, O>, O, String, Object...) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- notHas(IntFunction<P>, Relation<P, O>, O, Supplier<X2>) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- notHas(IntUnaryOperator, String, IntPredicate) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- notHas(IntUnaryOperator, String, IntRelation, int) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- notHas(IntUnaryOperator, IntPredicate) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- notHas(IntUnaryOperator, IntPredicate, String, Object...) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- notHas(IntUnaryOperator, IntPredicate, Supplier<X2>) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- notHas(IntUnaryOperator, IntRelation, int) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- notHas(IntUnaryOperator, IntRelation, int, String, Object...) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- notHas(IntUnaryOperator, IntRelation, int, Supplier<X2>) - Method in class org.klojang.check.IntCheck
-
Validates a property of the argument.
- notHas(ToIntFunction<T>, String, IntPredicate) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- notHas(ToIntFunction<T>, String, IntObjRelation<O>, O) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- notHas(ToIntFunction<T>, String, IntRelation, int) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- notHas(ToIntFunction<T>, IntPredicate) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- notHas(ToIntFunction<T>, IntPredicate, String, Object...) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument using the specified test.
- notHas(ToIntFunction<T>, IntPredicate, Supplier<X2>) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- notHas(ToIntFunction<T>, IntObjRelation<O>, O) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- notHas(ToIntFunction<T>, IntObjRelation<O>, O, String, Object...) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument using the specified test.
- notHas(ToIntFunction<T>, IntObjRelation<O>, O, Supplier<X2>) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- notHas(ToIntFunction<T>, IntRelation, int) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- notHas(ToIntFunction<T>, IntRelation, int, String, Object...) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument using the specified test.
- notHas(ToIntFunction<T>, IntRelation, int, Supplier<X2>) - Method in class org.klojang.check.ObjectCheck
-
Validates a property of the argument, retrieved through the specified function, using the specified test.
- notNull() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is not null.
- notNull(T) - Static method in class org.klojang.check.Check
-
Static factory method.
- notNull(T, String) - Static method in class org.klojang.check.Check
-
Static factory method.
- npe() - Static method in class org.klojang.check.CommonExceptions
-
Returns a
Supplier
of aNullPointerException
. - npe(String) - Static method in class org.klojang.check.CommonExceptions
-
Returns a
Supplier
of aNullPointerException
. - NULL - Static variable in class org.klojang.check.CommonExceptions
-
Shortcut for
NullPointerException::new
. - NULL() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is null.
- nullOr() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is either null or equals a particular value.
- numerical() - Static method in class org.klojang.check.CommonChecks
-
Verifies that a string can be parsed into a number of the specified type without loss of information.
O
- OBJ - Static variable in class org.klojang.check.Tag
-
"obj"
- ObjectCheck<T,
X> - Class in org.klojang.check -
Facilitates the validation of arbitrarily typed values.
- ObjIntRelation<S> - Interface in org.klojang.check.relation
-
Defines some kind of relationship between an object and an integer.
- odd() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is an odd integer.
- of(T) - Static method in class org.klojang.check.aux.Result
-
Returns a
Result
containing the specified value (possiblynull
). - OFFSET - Static variable in class org.klojang.check.Tag
-
"offset"
- offsetLength(byte[], int, int) - Static method in class org.klojang.check.Check
-
All-in-one check for the specified array, offset and length.
- offsetLength(int, int, int) - Static method in class org.klojang.check.Check
-
All-in-one check for the provided size, offset and length.
- ok() - Method in class org.klojang.check.IntCheck
-
Returns the
int
value validated by this instance. - ok() - Method in class org.klojang.check.ObjectCheck
-
Returns the validated value.
- ok(FallibleFunction<T, R, X2>) - Method in class org.klojang.check.ObjectCheck
-
Passes the validated value to the specified function and returns the value it computes.
- ok(FallibleIntUnaryOperator<X2>) - Method in class org.klojang.check.IntCheck
-
Passes the validated value to the specified function and returns the value it computes.
- on(Function<String, X>, int) - Static method in class org.klojang.check.Check
-
Static factory method.
- on(Function<String, X>, int, String) - Static method in class org.klojang.check.Check
-
Static factory method.
- on(Function<String, X>, T) - Static method in class org.klojang.check.Check
-
Static factory method.
- on(Function<String, X>, T, String) - Static method in class org.klojang.check.Check
-
Static factory method.
- or(boolean) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test with the specified free-form test.
- or(boolean) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test with the specified free-form test.
- or(int, IntRelation, Quantifier, int...) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- or(int, IntRelation, Quantifier, int...) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- or(Result<T>) - Method in class org.klojang.check.aux.Result
-
Returns this
Result
if it contains a proper result value (possiblynull
), else the providedResult
. - or(IntRelation, Quantifier, int...) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- or(Relation<V, O>, Quantifier, P...) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- or(S, Relation<S, O>, Quantifier, P...) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- or(S, Relation<S, O>, Quantifier, P...) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- ordinal() - Static method in class org.klojang.check.CommonProperties
-
Returns the ordinal of an enum constant.
- orElse(IntPredicate) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- orElse(Predicate<?>) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- orElse(IntRelation, int) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- orElse(Relation<?, O>, O) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- orElse(T) - Method in class org.klojang.check.aux.Result
-
Returns the result value, if available, else the provided default value.
- orEval(Supplier<Boolean>) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test with the free-form test supplied by the specified
Supplier
. - orEval(Supplier<Boolean>) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test with the free-form test supplied by the specified
Supplier
. - org.klojang.check - module org.klojang.check
-
Klojang Check is a Java module dedicated to defensive programming.
- org.klojang.check - package org.klojang.check
-
The central package of this Java module.
- org.klojang.check.aux - package org.klojang.check.aux
-
A small collection of classes and interfaces that do not themselves take part in the validation framework, but are treated as first-class citizens by it.
- org.klojang.check.fallible - package org.klojang.check.fallible
-
A collection of functional interfaces that allow a checked exception to be thrown from their functional method.
- 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.
- orNot(int, IntPredicate) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- orNot(IntPredicate) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- orNot(Predicate<?>) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- orNot(IntRelation, int) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- orNot(Relation<?, O>, O) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- orNot(S, Relation<S, O>, O) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- orNot(S, Relation<S, O>, O) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- orNot(T, Predicate<T>) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- orNot(U, Predicate<U>) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- orThat(int, IntPredicate) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- orThat(int, IntPredicate) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- orThat(int, IntRelation, int) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- orThat(int, IntRelation, int) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- orThat(S, Relation<S, O>, O) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- orThat(S, Relation<S, O>, O) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- orThat(T, Predicate<T>) - Method in interface org.klojang.check.relation.ComposableIntPredicate
-
Returns a new test combining this test and the specified test.
- orThat(U, Predicate<U>) - Method in interface org.klojang.check.relation.ComposablePredicate
-
Returns a new test combining this test and the specified test.
- OUT - Static variable in class org.klojang.check.Tag
-
"out"
- OUTPUT - Static variable in class org.klojang.check.Tag
-
"output"
P
- PARAM - Static variable in class org.klojang.check.Tag
-
"path"
- parsableAs() - Static method in class org.klojang.check.CommonChecks
-
Verifies that a string can be parsed into a
Number
of the specified type without loss of information. - PATH - Static variable in class org.klojang.check.Tag
-
"path"
- plainInt() - Static method in class org.klojang.check.CommonChecks
-
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).
- plainShort() - Static method in class org.klojang.check.CommonChecks
-
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).
- positive() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is a positive integer.
- Predicates and Relations - Search tag in module org.klojang.check
- Section
- present() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is a non-empty
Optional
. - PROPERTIES - Static variable in class org.klojang.check.Tag
-
"properties"
- PROPERTY - Static variable in class org.klojang.check.Tag
-
"property"
Q
- Quantifier - Enum Class in org.klojang.check.relation
-
Symbolic constants for logical quantifiers.
R
- readable() - Static method in class org.klojang.check.CommonChecks
-
Verifies that a file is readable.
- regularFile() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is an existing, regular file.
- REL_PATH - Static variable in class org.klojang.check.Tag
-
"relative path"
- Relation<S,
O> - Interface in org.klojang.check.relation -
Defines a relationship between two objects.
- Result<T> - Class in org.klojang.check.aux
-
A simple value container that explicitly allows the value to be
null
.
S
- sameAs() - Static method in class org.klojang.check.CommonChecks
-
Verifies that a value references the same object as another value.
- SET - Static variable in class org.klojang.check.Tag
-
"set"
- setSize() - Static method in class org.klojang.check.CommonProperties
-
Returns the size of a
Set
argument. - size() - Static method in class org.klojang.check.CommonProperties
-
Returns the size of a
Collection
argument. - SIZE - Static variable in class org.klojang.check.Tag
-
"size"
- SOURCE - Static variable in class org.klojang.check.Tag
-
"source"
- startsWith() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument starts with the specified substring.
- startsWithIC() - Static method in class org.klojang.check.CommonChecks
-
Verifies that a string value starts with, ignoring case, the specified string.
- STATE - Static variable in class org.klojang.check.CommonExceptions
-
Shortcut for
IllegalStateException::new
. - STR - Static variable in class org.klojang.check.Tag
-
"str"
- STRING - Static variable in class org.klojang.check.Tag
-
"string"
- strlen() - Static method in class org.klojang.check.CommonProperties
-
Returns the length of a
CharSequence
. - strval() - Static method in class org.klojang.check.CommonProperties
-
Returns the result of calling
toString()
on the argument. - substringOf() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is a substring of the specified string.
- subtypeOf() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is a subtype of the provided type.
- supertypeOf() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is a supertype of the provided type.
- symlink() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is a symbolic link.
T
- Tag - Class in org.klojang.check
-
String constants for some commonly used names for fields, parameters and variables.
- TARGET - Static variable in class org.klojang.check.Tag
-
"target"
- TEST - Static variable in class org.klojang.check.Tag
-
"test"
- that(int) - Static method in class org.klojang.check.Check
-
Static factory method.
- that(int, String) - Static method in class org.klojang.check.Check
-
Static factory method.
- that(T) - Static method in class org.klojang.check.Check
-
Static factory method.
- that(T, String) - Static method in class org.klojang.check.Check
-
Static factory method.
- then(FallibleConsumer<T, X2>) - Method in class org.klojang.check.ObjectCheck
-
Passes the validated value to a consumer for further processing.
- then(FallibleIntConsumer<X2>) - Method in class org.klojang.check.IntCheck
-
Passes the validated value to a consumer for further processing.
- Throwing a Different Type of Exception - Search tag in module org.klojang.check
- Section
- TO_INDEX - Static variable in class org.klojang.check.Tag
-
"to-index"
- toLowerCase() - Static method in class org.klojang.check.CommonProperties
-
Returns the lower case version of the argument.
- toString() - Method in class org.klojang.check.aux.Result
-
Returns a string representation analogous to the one provided by
Optional
. - toUpperCase() - Static method in class org.klojang.check.CommonProperties
-
Returns the upper case version of the argument.
- type() - Static method in class org.klojang.check.CommonProperties
-
Returns the
Class
of the argument. - TYPE - Static variable in class org.klojang.check.Tag
-
"type"
U
- unbox() - Static method in class org.klojang.check.CommonProperties
-
Returns the unboxed version of the argument.
V
- valid() - Static method in class org.klojang.check.relation.Compose
-
Returns a
ComposablePredicate
that always evaluates totrue
. - Validating Argument Properties - Search tag in module org.klojang.check
- Section
- Validating Interrelated Values - Search tag in interface org.klojang.check.relation.ComposablePredicate
- Section
- validIf(T) - Static method in class org.klojang.check.relation.Compose
-
Returns a
ComposablePredicate
that evaluates totrue
if the value to be tested has the specified value. - validInt() - Static method in class org.klojang.check.relation.Compose
-
Returns a
ComposableIntPredicate
that always evaluates totrue
. - validIntIf(int) - Static method in class org.klojang.check.relation.Compose
-
Returns a
ComposablePredicate
that evaluates totrue
if the value to be tested has the specified value. - validIntWhen(IntPredicate) - Static method in class org.klojang.check.relation.Compose
-
Converts an
IntPredicate
to aComposableIntPredicate
. - validIntWhen(IntObjRelation<O>, O) - Static method in class org.klojang.check.relation.Compose
-
Converts an
IntObjRelation
to aComposableIntPredicate
. - validIntWhen(IntRelation, int) - Static method in class org.klojang.check.relation.Compose
-
Converts an
Relation
to aComposableIntPredicate
. - validWhen(Predicate<T>) - Static method in class org.klojang.check.relation.Compose
-
Converts a
Predicate
to aComposablePredicate
. - validWhen(Relation<S, O>, O) - Static method in class org.klojang.check.relation.Compose
-
Converts a
Relation
to aComposablePredicate
. - value() - Static method in class org.klojang.check.CommonProperties
-
Returns the value of a
Map
entry. - VALUE - Enum constant in enum class org.klojang.check.aux.DuplicateValueException.Usage
-
The value was meant to be used for some other uniqueness-enforcing purpose.
- VALUE - Static variable in class org.klojang.check.Tag
-
"value"
- valueIn() - Static method in class org.klojang.check.CommonChecks
-
Verifies the presence of a value within a map.
- valueOf(String) - Static method in enum class org.klojang.check.aux.DuplicateValueException.Usage
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.klojang.check.relation.Quantifier
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.klojang.check.aux.DuplicateValueException.Usage
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in class org.klojang.check.CommonProperties
-
Returns the keys of a
Map
argument. - values() - Static method in enum class org.klojang.check.relation.Quantifier
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VALUES - Static variable in class org.klojang.check.Tag
-
"values"
- VARARGS - Static variable in class org.klojang.check.Tag
-
"varargs array"
W
- writable() - Static method in class org.klojang.check.CommonChecks
-
Verifies that a file is writable.
Y
- yes() - Static method in class org.klojang.check.CommonChecks
-
Verifies that a condition evaluates to
true
.
Z
- zero() - Static method in class org.klojang.check.CommonChecks
-
Verifies that the argument is zero (0).
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form