|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.cobertura.util.StringUtil
Abstract, not to be instantiated utility class for String functions.
Constructor Summary | |
StringUtil()
|
Method Summary | |
static java.lang.String |
getPercentValue(double value)
Takes a double and turns it into a percent string. |
static java.lang.String |
replaceAll(java.lang.String original,
java.lang.String replace,
java.lang.String with)
Replaces all instances of "replace" with "with" from the "original" string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringUtil()
Method Detail |
public static java.lang.String replaceAll(java.lang.String original, java.lang.String replace, java.lang.String with)
Replaces all instances of "replace" with "with" from the "original" string.
NOTE: it is known that a similar function is included in jdk 1.4 as replaceAll(), but is written here so as to allow backward compatibility to users using SDK's prior to 1.4
original
- The original string to do replacement on.replace
- The string to replace.with
- The string to replace "replace" with.
public static java.lang.String getPercentValue(double value)
value
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |