com.atlassian.confluence.util
Class TimePeriod

java.lang.Object
  extended by com.atlassian.confluence.util.TimePeriod
All Implemented Interfaces:
Serializable

public class TimePeriod
extends Object
implements Serializable

Represents a period of time. Consists of a time with a time unit and is immutable.

See Also:
Serialized Form

Constructor Summary
protected TimePeriod()
           
  TimePeriod(long time, TimeUnit timeUnit)
           
 
Method Summary
 long getPeriod()
           
 TimeUnit getTimeUnit()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimePeriod

public TimePeriod(long time,
                  TimeUnit timeUnit)

TimePeriod

protected TimePeriod()
Method Detail

getPeriod

public long getPeriod()

getTimeUnit

public TimeUnit getTimeUnit()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003-2013 Atlassian. All Rights Reserved.