Class TimeIntervalColumnHeader
- java.lang.Object
-
- pro.taskana.monitor.api.reports.header.TimeIntervalColumnHeader
-
- All Implemented Interfaces:
ColumnHeader<AgeQueryItem>
- Direct Known Subclasses:
TimeIntervalColumnHeader.Date,TimeIntervalColumnHeader.Range
public class TimeIntervalColumnHeader extends Object implements ColumnHeader<AgeQueryItem>
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 Classes Modifier and Type Class Description static classTimeIntervalColumnHeader.Datefor Date representation.static classTimeIntervalColumnHeader.RangeFor representation of Range.
-
Constructor Summary
Constructors Constructor Description TimeIntervalColumnHeader(int ageInDays)TimeIntervalColumnHeader(int lowerAgeLimit, int upperAgeLimit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfits(AgeQueryItem item)Determines if a specific item is meant part of this column.StringgetDisplayName()The display name is the string representation of this column.static intgetLargestLowerLimit(List<? extends TimeIntervalColumnHeader> columnHeaders)intgetLowerAgeLimit()static intgetSmallestUpperLimit(List<? extends TimeIntervalColumnHeader> columnHeaders)intgetUpperAgeLimit()StringtoString()
-
-
-
Method Detail
-
getSmallestUpperLimit
public static int getSmallestUpperLimit(List<? extends TimeIntervalColumnHeader> columnHeaders)
-
getLargestLowerLimit
public static int getLargestLowerLimit(List<? extends TimeIntervalColumnHeader> columnHeaders)
-
getLowerAgeLimit
public int getLowerAgeLimit()
-
getUpperAgeLimit
public int getUpperAgeLimit()
-
getDisplayName
public String 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
public boolean fits(AgeQueryItem item)
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.
-
-