Class Strings
java.lang.Object
com.thebuzzmedia.exiftool.commons.lang.Strings
Static String Utilities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isNotEmpty
(String value) Check that given string is notnull
or empty.tryParseInt
(String value) Try to parse a string as an Integer and return the value if valid, or an Optional empty if not.
-
Method Details
-
isNotEmpty
Check that given string is notnull
or empty.- Parameters:
value
- Given string to check.- Returns:
true
ifvalue
isnull
or empty.
-
tryParseInt
Try to parse a string as an Integer and return the value if valid, or an Optional empty if not.- Parameters:
value
- The string to convert to an Integer- Returns:
- Optional Integer which will be poresent if valid, and empty if not.
-