Class StringUtils


  • public final class StringUtils
    extends java.lang.Object
    String utils.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isInteger​(java.lang.String value)
      Returns true if a string is an integer.
      static boolean isInteger​(java.lang.String value, int radix)
      Returns true if a string is an integer.
      static boolean isReal​(java.lang.String value)
      Returns true if a string is a real.
      static boolean isReal​(java.lang.String value, int radix)
      Returns true if a string is a real.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 integer
        radix - 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 real
        radix - the radix to test with.
        Returns:
        true if this string represents an real number.