Uses of Class
com.luchersol.core.specialized_checkers.math.CheckerArray
Packages that use CheckerArray
Package
Description
Specialized checkers for mathematical and array-based operations.
Core utility classes and base abstractions for the Checker framework.
-
Uses of CheckerArray in com.luchersol.core.specialized_checkers.math
Subclasses with type arguments of type CheckerArray in com.luchersol.core.specialized_checkers.mathModifier and TypeClassDescriptionclassCheckerArray<T>A specialized checker for array instances, providing fluent API methods to assert various properties such as emptiness, sorting order (ascending/descending), element matching conditions, and percentage-based validations.Methods in com.luchersol.core.specialized_checkers.math that return CheckerArrayModifier and TypeMethodDescriptionAsserts that all elements in the array match the provided predicate.Asserts that any element in the array matches the provided predicate.static <T> CheckerArray<T> CheckerArray.check(T[] array) Creates a newCheckerArrayfor the given array instance with a default name.static <T> CheckerArray<T> Creates a newCheckerArrayfor the given array instance with a custom name.CheckerArray.isEmpty()Asserts that the array is empty (has zero length).CheckerArray.isSortedAsc()Asserts that the array is sorted in ascending order according to the natural ordering of its elements.CheckerArray.isSortedAsc(Comparator<T> comparator) Asserts that the array is sorted in ascending order according to the provided comparator.CheckerArray.isSortedDesc()Asserts that the array is sorted in descending order according to the natural ordering of its elements.CheckerArray.isSortedDesc(Comparator<T> comparator) Asserts that the array is sorted in descending order according to the provided comparator.CheckerArray.isSufficientPercentage(Predicate<T> matching, double percentage) Asserts that at least the given percentage of elements in the array match the provided predicate.protected CheckerArray<T> CheckerArray.self()Returns this checker instance (for fluent API usage). -
Uses of CheckerArray in com.luchersol.core.util
Methods in com.luchersol.core.util that return CheckerArrayModifier and TypeMethodDescriptionCheckerArray<?> Checker.isArray()Checks if the object is an array and returns a CheckerArray for further validation.<C> CheckerArray<C> Checks if the object is an array of the given class and returns a CheckerArray for further validation.