Class ArrayChecks<E>
java.lang.Object
dev.prozilla.pine.common.util.checks.ChecksBase<E[],ArrayChecks<E>>
dev.prozilla.pine.common.util.checks.ArrayChecks<E>
- All Implemented Interfaces:
IterableChecks<ArrayChecks<E>>
public final class ArrayChecks<E>
extends ChecksBase<E[],ArrayChecks<E>>
implements IterableChecks<ArrayChecks<E>>
Utility class for performing checks on arrays.
-
Field Summary
Fields inherited from class dev.prozilla.pine.common.util.checks.ChecksBase
name, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringPerforms checks on the length of the iterable.Checks that the iterable is not empty.protected ArrayChecks<E> self()Methods inherited from class dev.prozilla.pine.common.util.checks.ChecksBase
asString, get, isEqualTo, isNotEqualTo, isNotNull, named
-
Constructor Details
-
ArrayChecks
-
ArrayChecks
-
-
Method Details
-
hasLength
Description copied from interface:IterableChecksPerforms checks on the length of the iterable.- Specified by:
hasLengthin interfaceIterableChecks<E>- Parameters:
lengthChecks- The checks to perform- Throws:
InvalidObjectException
-
hasLength
- Specified by:
hasLengthin interfaceIterableChecks<E>- Throws:
InvalidObjectException
-
isNotEmpty
Description copied from interface:IterableChecksChecks that the iterable is not empty.- Specified by:
isNotEmptyin interfaceIterableChecks<E>- Throws:
InvalidArrayException
-
self
- Specified by:
selfin classChecksBase<E[],ArrayChecks<E>>
-
getDefaultName
- Specified by:
getDefaultNamein classChecksBase<E[],ArrayChecks<E>>
-