public interface AQStringFactory
String
data type.
An instance of this interface is available via aqua.type.string alias.
Modifier and Type | Method and Description |
---|---|
boolean |
isBlank(java.lang.Object string)
Returns true if the specified string is blank (null, empty string, or contains only whitespace).
|
boolean |
isNotBlank(java.lang.Object string)
Returns true if the specified string is not blank.
|
boolean |
isShorterThan(java.lang.Object string,
int max)
Returns true if the length of the specified string is less than the supplied value.
|
java.lang.String |
trim(java.lang.Object string)
Trims whitespace on both ends of the specified string.
|
java.lang.String |
trimLeft(java.lang.Object string)
Trims left (leading) whitespace.
|
java.lang.String |
trimRight(java.lang.Object string)
Trims right (trailing) whitespace.
|
boolean isBlank(java.lang.Object string)
string
- the specified stringboolean isNotBlank(java.lang.Object string)
string
- the specified stringjava.lang.String trimLeft(java.lang.Object string)
string
- the specified stringjava.lang.String trimRight(java.lang.Object string)
string
- the specified stringjava.lang.String trim(java.lang.Object string)
string
- the specified stringboolean isShorterThan(java.lang.Object string, int max)
string
- the specified stringmax
- the maximum length
Copyright © 2017 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.