public class PeriodGranularity extends BaseQueryGranularity
| Constructor and Description |
|---|
PeriodGranularity(org.joda.time.Period period,
org.joda.time.DateTime origin,
org.joda.time.DateTimeZone tz) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
cacheKey() |
boolean |
equals(Object o) |
org.joda.time.DateTime |
getOrigin() |
org.joda.time.Period |
getPeriod() |
org.joda.time.DateTimeZone |
getTimeZone() |
int |
hashCode() |
long |
next(long t) |
org.joda.time.DateTime |
toDateTime(long t) |
String |
toString() |
long |
truncate(long t) |
iterablefromStringpublic PeriodGranularity(org.joda.time.Period period,
org.joda.time.DateTime origin,
org.joda.time.DateTimeZone tz)
public org.joda.time.Period getPeriod()
public org.joda.time.DateTimeZone getTimeZone()
public org.joda.time.DateTime getOrigin()
public org.joda.time.DateTime toDateTime(long t)
toDateTime in class BaseQueryGranularitypublic long next(long t)
next in class BaseQueryGranularitypublic long truncate(long t)
truncate in class BaseQueryGranularitypublic byte[] cacheKey()
cacheKey in class BaseQueryGranularityCopyright © 2011–2015. All rights reserved.