Package org.firebirdsql.util
Class StringUtils
- java.lang.Object
-
- org.firebirdsql.util.StringUtils
-
@InternalApi public final class StringUtils extends java.lang.Object
Helper class for string operations- Author:
- Mark Rotteveel
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isNullOrEmpty(java.lang.String value)
Checks ifvalue
isnull
or empty.static java.lang.String
trimToNull(java.lang.String value)
Trimsvalue
if non-null, returning the trimmed value, ornull
ifvalue
wasnull
or empty after trimming.
-
-
-
Method Detail
-
trimToNull
public static java.lang.String trimToNull(java.lang.String value)
Trimsvalue
if non-null, returning the trimmed value, ornull
ifvalue
wasnull
or empty after trimming.- Parameters:
value
- Value to trim- Returns:
- Trimmed string
value
, ornull
when null, or empty after trim. - See Also:
String.trim()
-
isNullOrEmpty
public static boolean isNullOrEmpty(java.lang.String value)
Checks ifvalue
isnull
or empty.- Parameters:
value
- value to test- Returns:
true
ifvalue
isnull
or emoty,false
for non-empty strings- Since:
- 6
-
-