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(Object string)
Returns true if the specified string is blank (null, empty string, or contains only whitespace).
|
boolean |
isNotBlank(Object string)
Returns true if the specified string is not blank.
|
boolean |
isShorterThan(Object string,
int max)
Returns true if the length of the specified string is less than the supplied value.
|
String |
trim(Object string)
Trims whitespace on both ends of the specified string.
|
String |
trimLeft(Object string)
Trims left (leading) whitespace.
|
String |
trimRight(Object string)
Trims right (trailing) whitespace.
|
boolean isBlank(Object string)
string
- the specified stringboolean isNotBlank(Object string)
string
- the specified stringString trimLeft(Object string)
string
- the specified stringString trimRight(Object string)
string
- the specified stringString trim(Object string)
string
- the specified stringboolean isShorterThan(Object string, int max)
string
- the specified stringmax
- the maximum length
Copyright © 2017 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.