T - the type of the grid granularitypublic abstract class AbstractGridPolicy<T extends IGranularity> extends AbstractPolicy implements IGridPolicy<T>
IGridPolicy, which deals with storing
the list of supported granularities.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractGridPolicy(boolean adjustingStartTimes,
boolean adjustingEndTimes,
T... granularities)
Constructs a new grid policy.
|
protected |
AbstractGridPolicy(T... granularities)
Constructs a new grid policy, which adjusts start and end times.
|
| Modifier and Type | Method and Description |
|---|---|
T[] |
getGridGranularities()
Returns the granularities that will be available for the grid.
|
boolean |
isAdjustingEndTimes()
Determines whether the policy will round end times based on a given
granularity.
|
boolean |
isAdjustingStartTimes()
Determines whether the policy will round start times based on a given
granularity.
|
assertClassclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGridAdjustedEndTime, getGridAdjustedStartTime, getGridAdjustedTimeSpanprotected AbstractGridPolicy(boolean adjustingStartTimes,
boolean adjustingEndTimes,
T... granularities)
adjustingStartTimes - if TRUE the start times will be rounded based on the given
grid granularityadjustingEndTimes - if TRUE the end times will be rounded based on the given grid
granularitygranularities - the supported grid granularitiesprotected AbstractGridPolicy(T... granularities)
granularities - the supported grid granularitiespublic T[] getGridGranularities()
IGridPolicygetGridGranularities in interface IGridPolicy<T extends IGranularity>public boolean isAdjustingStartTimes()
public boolean isAdjustingEndTimes()
Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.