org.opennms.bb.dp.poller.scheduler.utils
Class UnitConverter

java.lang.Object
  |
  +--org.opennms.bb.dp.poller.scheduler.utils.UnitConverter

public class UnitConverter
extends Object


Field Summary
static int DAY_MULTIPLIER
           
static char DAYS
           
static int HOUR_MULTIPLIER
           
static char HOURS
           
static int MINUTE_MULTIPLIER
           
static char MINUTES
           
static int SECOND_MULTIPLIER
           
static char SECONDS
           
 
Constructor Summary
UnitConverter()
           
 
Method Summary
private static int getResolution(char aChar)
           
static int getSeconds(String aValue)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

SECONDS

public static final char SECONDS

MINUTES

public static final char MINUTES

HOURS

public static final char HOURS

DAYS

public static final char DAYS

SECOND_MULTIPLIER

public static final int SECOND_MULTIPLIER

MINUTE_MULTIPLIER

public static final int MINUTE_MULTIPLIER

HOUR_MULTIPLIER

public static final int HOUR_MULTIPLIER

DAY_MULTIPLIER

public static final int DAY_MULTIPLIER
Constructor Detail

UnitConverter

public UnitConverter()
Method Detail

getSeconds

public static int getSeconds(String aValue)

getResolution

private static int getResolution(char aChar)