org.dawb.common.util.text
Class StringUtils

java.lang.Object
  extended by org.dawb.common.util.text.StringUtils

public class StringUtils
extends java.lang.Object

Author:
fcp94556

Constructor Summary
StringUtils()
           
 
Method Summary
static boolean isDigit(char c)
          Returns true if digit or .
static java.lang.StringBuilder keepDigits(java.lang.String text, int decimalPlaces)
          Returns a StringBuilder with only the digits and .
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

keepDigits

public static final java.lang.StringBuilder keepDigits(java.lang.String text,
                                                       int decimalPlaces)
Returns a StringBuilder with only the digits and . contained in the original string.

Parameters:
text -
decimalPlaces -
Returns:
StringBuilder

isDigit

public static final boolean isDigit(char c)
Returns true if digit or .

Parameters:
c -
Returns:
boolean