Class TimeIntervalColumnHeader
java.lang.Object
pro.taskana.monitor.api.reports.header.TimeIntervalColumnHeader
- All Implemented Interfaces:
ColumnHeader<AgeQueryItem>
- Direct Known Subclasses:
TimeIntervalColumnHeader.Date,TimeIntervalColumnHeader.Range
A TimeIntervalColumnHeader has a lower and an upper age limit which subdivide the count of tasks
into different sections. Days in past are represented as negative values and days in the future
are represented as positive values. To avoid tasks are counted multiple times or not be listed in
the report, these TimeIntervalColumnHeaders should not overlap and should not have gaps. If the
TimeIntervalColumnHeader should represent a single day, lowerAgeLimit and upperAgeLimit have to
be equal. The outer cluster of a report should have open ends. These open ends are represented
with Integer.MIN_VALUE and Integer.MAX_VALUE.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classfor Date representation.static classFor representation of Range. -
Constructor Summary
ConstructorsConstructorDescriptionTimeIntervalColumnHeader(int ageInDays) TimeIntervalColumnHeader(int lowerAgeLimit, int upperAgeLimit) -
Method Summary
Modifier and TypeMethodDescriptionbooleanfits(AgeQueryItem item) Determines if a specific item is meant part of this column.The display name is the string representation of this column.static intgetLargestLowerLimit(List<? extends TimeIntervalColumnHeader> columnHeaders) intstatic intgetSmallestUpperLimit(List<? extends TimeIntervalColumnHeader> columnHeaders) inttoString()
-
Constructor Details
-
TimeIntervalColumnHeader
public TimeIntervalColumnHeader(int ageInDays) -
TimeIntervalColumnHeader
public TimeIntervalColumnHeader(int lowerAgeLimit, int upperAgeLimit)
-
-
Method Details
-
getSmallestUpperLimit
-
getLargestLowerLimit
-
getLowerAgeLimit
public int getLowerAgeLimit() -
getUpperAgeLimit
public int getUpperAgeLimit() -
getDisplayName
Description copied from interface:ColumnHeaderThe display name is the string representation of this column. Used to give this column a name during presentation.- Specified by:
getDisplayNamein interfaceColumnHeader<AgeQueryItem>- Returns:
- String representation of this column.
-
fits
Description copied from interface:ColumnHeaderDetermines if a specific item is meant part of this column.- Specified by:
fitsin interfaceColumnHeader<AgeQueryItem>- Parameters:
item- the given item to check.- Returns:
- True, if the item is supposed to be part of this column. Otherwise false.
-
toString
-