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 StringPerforms checks on the length of the iterable.Checks that the iterable is not empty.protected StringChecksself()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:IterableChecksPerforms checks on the length of the iterable.- Specified by:
hasLengthin interfaceIterableChecks<StringChecks>- Parameters:
lengthChecks- The checks to perform- Throws:
InvalidObjectException
-
hasLength
- Specified by:
hasLengthin interfaceIterableChecks<StringChecks>
-
isNotBlank
-
isNotEmpty
Description copied from interface:IterableChecksChecks that the iterable is not empty.- Specified by:
isNotEmptyin interfaceIterableChecks<StringChecks>
-
startsWith
-
endsWith
-
self
- Specified by:
selfin classChecksBase<String,StringChecks>
-
getDefaultName
- Specified by:
getDefaultNamein classChecksBase<String,StringChecks>
-