Class StringChecks
java.lang.Object
dev.prozilla.pine.common.util.checks.ChecksBase<String,StringChecks>
dev.prozilla.pine.common.util.checks.StringChecks
- All Implemented Interfaces:
IterableChecks<StringChecks>
public final class StringChecks
extends ChecksBase<String,StringChecks>
implements IterableChecks<StringChecks>
Utility class for performing checks on strings.
-
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 StringChecks
self()
startsWith
(String prefix) Methods inherited from class dev.prozilla.pine.common.util.checks.ChecksBase
asString, get, isEqualTo, isNotEqualTo, isNotNull, named
-
Constructor Details
-
StringChecks
-
StringChecks
-
-
Method Details
-
hasLength
Description copied from interface:IterableChecks
Performs checks on the length of the iterable.- Specified by:
hasLength
in interfaceIterableChecks<StringChecks>
- Parameters:
lengthChecks
- The checks to perform- Throws:
InvalidObjectException
-
hasLength
- Specified by:
hasLength
in interfaceIterableChecks<StringChecks>
-
isNotBlank
-
isNotEmpty
Description copied from interface:IterableChecks
Checks that the iterable is not empty.- Specified by:
isNotEmpty
in interfaceIterableChecks<StringChecks>
-
startsWith
-
endsWith
-
self
- Specified by:
self
in classChecksBase<String,
StringChecks>
-
getDefaultName
- Specified by:
getDefaultName
in classChecksBase<String,
StringChecks>
-