|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mancrd.ahah.commons.utils.StringUtils
public final class StringUtils
This class performs various tasks on Strings
Method Summary | |
---|---|
static String |
addWhiteSpaceToEnd(String theString,
int finalLength)
Adds whitespace to the end of given String |
static String |
formatDate_MySQL(Date date)
|
static String |
formatDate_yyyyMMdd(Date date)
|
static String |
formatPercentage(double number)
Will convert a decimal to a percentage. |
static String |
formatPrice(double number)
|
static String |
getMD5(String input)
Get the MD5 hash of a String |
static String |
join(Collection<? extends Object> collection,
String separator)
Joins a collection of Objects separated by a specified separator |
static Date |
parseDateString_MySQL(String dateString)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String formatPrice(double number)
public static String join(Collection<? extends Object> collection, String separator)
collection
- separator
-
public static String addWhiteSpaceToEnd(String theString, int finalLength)
theString
- finalLength
-
public static String formatPercentage(double number)
number
- the number in decimal form.
public static String formatDate_yyyyMMdd(Date date)
date
-
public static String formatDate_MySQL(Date date)
date
-
public static Date parseDateString_MySQL(String dateString)
dateString
-
public static String getMD5(String input)
input
- the String to hash
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |