|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--j2meunit.util.StringUtil
A class with junit related String utilities.
Constructor Summary | |
protected |
StringUtil()
Creates a new StringUtil object. |
Method Summary | |
static java.lang.String |
elapsedTimeAsString(long nTime)
Assumes the argument to be a decimal number of milliseconds and formats it into a string. |
static java.lang.String |
truncate(java.lang.String s,
int length)
Truncates a string to a maximum length. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected StringUtil()
Method Detail |
public static java.lang.String elapsedTimeAsString(long nTime)
nTime
- The time value to convert
public static java.lang.String truncate(java.lang.String s, int length)
s
- The string to truncatelength
- The maximum length of the string
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |