T
- the object type of the granularitypublic interface IGranularity<T extends IGranularity>
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of the granularity (e.g.
|
String |
getSingularName()
Returns the singular name of the granularity (e.g.
|
long |
getStandardDuration()
Returns the standard duration in milliseconds of the granularity, e.g.
|
boolean |
isDisplayingMarkerType(MarkerType type)
Determines whether markers of the given type will be shown in the
timeline.
|
boolean |
isLarger(T granularity)
Determines whether the given granularity is larger than the given one.
|
boolean |
isSmaller(T granularity)
Determines whether the granularity is smaller than the given one.
|
String getName()
String getSingularName()
boolean isSmaller(T granularity)
granularity
- the granularity with which to perform the comparisonboolean isLarger(T granularity)
granularity
- the granularity with which to perform the comparisonboolean isDisplayingMarkerType(MarkerType type)
type
- the type of marker to checklong getStandardDuration()
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.