| 
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.util.TimeUtil
public class TimeUtil
Utilities for converting times
| Constructor Summary | |
|---|---|
TimeUtil()
 | 
|
| Method Summary | |
|---|---|
static int | 
convertTimeToInt(long seconds)
Converts a long seconds value to an int seconds value and takes into account overflow from the downcast by switching to Integer.MAX_VALUE.  | 
static long | 
toMillis(int timeInSecs)
Converts seconds to milliseconds, with a precision of 1 second  | 
static int | 
toSecs(long timeInMillis)
Converts milliseconds to seconds  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public TimeUtil()
| Method Detail | 
|---|
public static int toSecs(long timeInMillis)
timeInMillis - 
public static long toMillis(int timeInSecs)
timeInSecs - the time in seconds
public static int convertTimeToInt(long seconds)
seconds - Long value
  | 
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||