|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.time.BaseDuration
public abstract class BaseDuration extends java.lang.Object
Base class for date and time durations.
Nested Class Summary | |
---|---|
static class |
BaseDuration.From
|
Field Summary | |
---|---|
protected int |
days
|
protected int |
hours
|
protected int |
millis
|
protected int |
minutes
|
protected int |
months
|
protected int |
seconds
|
protected int |
years
|
Constructor Summary | |
protected BaseDuration(int years, int months, int days, int hours, int minutes, int seconds, int millis)
|
|
protected BaseDuration(int days, int hours, int minutes, int seconds, int millis)
|
Method Summary | |
---|---|
int
|
compareTo(BaseDuration otherDuration)
|
java.util.Date
|
getAgo()
|
int
|
getDays()
|
BaseDuration.From
|
getFrom()
|
int
|
getHours()
|
int
|
getMillis()
|
int
|
getMinutes()
|
int
|
getMonths()
|
int
|
getSeconds()
|
int
|
getYears()
|
java.util.Date
|
plus(java.util.Date date)
|
long
|
toMilliseconds()
|
java.lang.String
|
toString()
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
protected final int days
protected final int hours
protected final int millis
protected final int minutes
protected final int months
protected final int seconds
protected final int years
Constructor Detail |
---|
protected BaseDuration(int years, int months, int days, int hours, int minutes, int seconds, int millis)
protected BaseDuration(int days, int hours, int minutes, int seconds, int millis)
Method Detail |
---|
public int compareTo(BaseDuration otherDuration)
public java.util.Date getAgo()
public int getDays()
public BaseDuration.From getFrom()
public int getHours()
public int getMillis()
public int getMinutes()
public int getMonths()
public int getSeconds()
public int getYears()
public java.util.Date plus(java.util.Date date)
public long toMilliseconds()
public java.lang.String toString()
Groovy Documentation