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) |
iterable
fromString
public 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 BaseQueryGranularity
public long next(long t)
next
in class BaseQueryGranularity
public long truncate(long t)
truncate
in class BaseQueryGranularity
public byte[] cacheKey()
cacheKey
in class BaseQueryGranularity
Copyright © 2011–2015. All rights reserved.