|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.util.TimeConverter
public class TimeConverter
| Method Summary | |
|---|---|
static long |
getMilliSeconds(long amount,
java.lang.String unit)
Helper method to get the milliseconds for the given amount and unit |
static long |
getMilliSeconds(java.lang.String rawString)
Helper method to get the milliseconds for the given rawstring. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static long getMilliSeconds(long amount,
java.lang.String unit)
throws java.lang.NumberFormatException
amount - The amount for use with the unitunit - The unit
java.lang.NumberFormatException - Get thrown if an illegal unit was used
public static long getMilliSeconds(java.lang.String rawString)
throws java.lang.NumberFormatException
rawString - The rawstring which we use to extract the amount and unit
java.lang.NumberFormatException - Get thrown if an illegal rawString was used
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||