public interface StringRequirements extends ObjectRequirementsSpi<StringRequirements,String>, Isolatable<StringRequirements>
| Modifier and Type | Method and Description |
|---|---|
StringRequirements |
doesNotEndWith(String suffix)
Ensures that the parameter does not end with a value.
|
StringRequirements |
doesNotStartWith(String prefix)
Ensures that the parameter does not start with a value.
|
StringRequirements |
endsWith(String suffix)
Ensures that the parameter ends with a value.
|
StringRequirements |
isEmailFormat()
Ensures that the parameter contains a valid email format.
|
StringRequirements |
isEmpty()
Ensures that the parameter is empty.
|
StringRequirements |
isIpAddressFormat()
Ensures that the parameter contains a valid IP address format.
|
StringRequirements |
isNotEmpty()
Ensures that the parameter is not empty.
|
StringLengthRequirements |
length() |
StringRequirements |
startsWith(String prefix)
Ensures that the parameter starts with a value.
|
StringRequirements |
trim()
Trims whitespace at the beginning and end of the parameter.
|
isEqualTo, isEqualTo, isInstanceOf, isNotEqualTo, isNotEqualTo, isNotNull, isNull, withContext, withExceptionisolateStringRequirements doesNotEndWith(String suffix) throws IllegalArgumentException
suffix - the value the string must not end withIllegalArgumentException - if the parameter ends with suffixStringRequirements doesNotStartWith(String prefix) throws IllegalArgumentException
prefix - the value the string must not start withIllegalArgumentException - if the parameter starts with prefixStringRequirements endsWith(String suffix) throws IllegalArgumentException
suffix - the value the string must end withIllegalArgumentException - if the parameter does not end with suffixStringRequirements isEmpty() throws IllegalArgumentException
IllegalArgumentException - if the parameter is not emptytrim()StringRequirements isNotEmpty() throws IllegalArgumentException
IllegalArgumentException - if the parameter is emptytrim()StringRequirements isEmailFormat() throws IllegalArgumentException
IllegalArgumentException - if the parameter does not contain a valid email formatStringRequirements isIpAddressFormat() throws IllegalArgumentException
IllegalArgumentException - if the parameter does not contain a valid IP address formatStringRequirements startsWith(String prefix) throws IllegalArgumentException
prefix - the value the string must start withIllegalArgumentException - if the parameter does not start with prefixStringRequirements trim()
StringLengthRequirements length()
Copyright © 2016. All rights reserved.