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, wait
intervalsIterable, intervalsIterator, satisfies
public static final String ALL_NAME
public static final AllGranularity INSTANCE
public String getName()
Granularity
getName
in interface Granularity
public Iterator<org.joda.time.Interval> intervalsIterator(SimplifiedIntervalList intervals)
Granularity
intervalsIterator
in interface Granularity
intervals
- The intervals as a simplified interval listGranularity.intervalsIterator(Collection)
public boolean satisfiedBy(Granularity that)
satisfiedBy
in interface Granularity
that
- The granularity to be compared againstpublic boolean accepts(Collection<org.joda.time.Interval> intervals)
Granularity
accepts
in interface Granularity
intervals
- The collection of intervals that should be checkedpublic String getAlignmentDescription()
Granularity
getAlignmentDescription
in interface Granularity
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.