org.skife.config
Class TimeSpan

java.lang.Object
  extended by org.skife.config.TimeSpan

public class TimeSpan
extends Object


Constructor Summary
TimeSpan(long period, TimeUnit unit)
           
TimeSpan(String spec)
           
 
Method Summary
 boolean equals(Object obj)
           
 long getMillis()
           
 long getPeriod()
           
 TimeUnit getUnit()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeSpan

public TimeSpan(String spec)

TimeSpan

public TimeSpan(long period,
                TimeUnit unit)
Method Detail

getMillis

public long getMillis()

getPeriod

public long getPeriod()

getUnit

public TimeUnit getUnit()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2011. All Rights Reserved.