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 String
Performs 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:IterableChecks
Performs checks on the length of the iterable.- Specified by:
hasLength
in interfaceIterableChecks<E>
- Parameters:
lengthChecks
- The checks to perform- Throws:
InvalidObjectException
-
hasLength
- Specified by:
hasLength
in interfaceIterableChecks<E>
- Throws:
InvalidObjectException
-
isNotEmpty
Description copied from interface:IterableChecks
Checks that the iterable is not empty.- Specified by:
isNotEmpty
in interfaceIterableChecks<E>
- Throws:
InvalidArrayException
-
self
- Specified by:
self
in classChecksBase<E[],
ArrayChecks<E>>
-
getDefaultName
- Specified by:
getDefaultName
in classChecksBase<E[],
ArrayChecks<E>>
-