public class AllGranularity extends Object implements Granularity
Because it has special behavior compared with period based time grains it gets it's own type.
| Modifier and Type | Field and Description |
|---|---|
static String |
ALL_NAME |
static AllGranularity |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Collection<org.joda.time.Interval> intervals)
Determine if all intervals align with a granularity.
|
boolean |
equals(Object that) |
String |
getAlignmentDescription()
Get description of correct alignment of a granularity, e.g.
|
String |
getName()
Get the name of the granularity.
|
int |
hashCode() |
Iterator<org.joda.time.Interval> |
intervalsIterator(SimplifiedIntervalList intervals)
Build an iterator from a pre-simplified list of intervals.
|
boolean |
satisfiedBy(Granularity that)
Any granularity can be rolled up into all.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitintervalsIterable, intervalsIterator, satisfiespublic static final String ALL_NAME
public static final AllGranularity INSTANCE
public String getName()
GranularitygetName in interface Granularitypublic Iterator<org.joda.time.Interval> intervalsIterator(SimplifiedIntervalList intervals)
GranularityintervalsIterator in interface Granularityintervals - The intervals as a simplified interval listGranularity.intervalsIterator(Collection)public boolean satisfiedBy(Granularity that)
satisfiedBy in interface Granularitythat - The granularity to be compared againstpublic boolean accepts(Collection<org.joda.time.Interval> intervals)
Granularityaccepts in interface Granularityintervals - The collection of intervals that should be checkedpublic String getAlignmentDescription()
GranularitygetAlignmentDescription in interface GranularityCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.