com.google.code.tempusfugit.temporal
Class Duration
java.lang.Object
com.google.code.tempusfugit.temporal.Duration
- All Implemented Interfaces:
- Comparable<Duration>
public class Duration
- extends Object
- implements Comparable<Duration>
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.