com.google.code.tempusfugit.temporal
Class Duration

java.lang.Object
  extended by com.google.code.tempusfugit.temporal.Duration
All Implemented Interfaces:
Comparable<Duration>

public class Duration
extends Object
implements Comparable<Duration>


Method Summary
 int compareTo(Duration other)
           
static Duration days(long days)
           
 boolean equals(Object o)
           
 Boolean greaterThan(Duration duration)
           
 int hashCode()
           
static Duration hours(long hours)
           
 long inDays()
           
 long inHours()
           
 long inMillis()
           
 long inMinutes()
           
 long inSeconds()
           
 Boolean lessThan(Duration duration)
           
static Duration millis(long millis)
           
 Duration minus(Duration duration)
           
static Duration minutes(long minutes)
           
 Duration plus(Duration duration)
           
static Duration seconds(long seconds)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

seconds

public static Duration seconds(long seconds)

millis

public static Duration millis(long millis)

minutes

public static Duration minutes(long minutes)

hours

public static Duration hours(long hours)

days

public static Duration days(long days)

inMillis

public long inMillis()

inSeconds

public long inSeconds()

inMinutes

public long inMinutes()

inHours

public long inHours()

inDays

public long inDays()

plus

public Duration plus(Duration duration)

minus

public Duration minus(Duration duration)

greaterThan

public Boolean greaterThan(Duration duration)

lessThan

public Boolean lessThan(Duration duration)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Duration other)
Specified by:
compareTo in interface Comparable<Duration>


Copyright © 2009-2012 tempus-fugit committers. All Rights Reserved.