- java.lang.Object
-
- org.github.gestalt.config.utils.StringUtils
-
public final class StringUtils extends java.lang.ObjectString utils.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisInteger(java.lang.String value)Returns true if a string is an integer.static booleanisInteger(java.lang.String value, int radix)Returns true if a string is an integer.static booleanisReal(java.lang.String value)Returns true if a string is a real.static booleanisReal(java.lang.String value, int radix)Returns true if a string is a real.
-
-
-
Method Detail
-
isInteger
public static boolean isInteger(java.lang.String value)
Returns true if a string is an integer.- Parameters:
value- the string to test if it is a integer- Returns:
- true if this string represents an integer.
-
isInteger
public static boolean isInteger(java.lang.String value, int radix)Returns true if a string is an integer.- Parameters:
value- the string to test if it is a integerradix- the radix to test with.- Returns:
- true if this string represents an integer.
-
isReal
public static boolean isReal(java.lang.String value)
Returns true if a string is a real.- Parameters:
value- the string to test if it is a real- Returns:
- true if this string represents an real number.
-
isReal
public static boolean isReal(java.lang.String value, int radix)Returns true if a string is a real.- Parameters:
value- the string to test if it is a realradix- the radix to test with.- Returns:
- true if this string represents an real number.
-
-