Class DurationType
- java.lang.Object
-
- org.processmining.filterbook.types.DurationType
-
- All Implemented Interfaces:
java.lang.Comparable<DurationType>
public class DurationType extends java.lang.Object implements java.lang.Comparable<DurationType>
-
-
Field Summary
Fields Modifier and Type Field Description static intDAY_PRECISIONstatic intHOUR_PRECISIONstatic intMILLIS_PRECISIONstatic intMINUTE_PRECISIONstatic intMONTH_PRECISIONstatic intSECOND_PRECISIONstatic intYEAR_PRECISION
-
Constructor Summary
Constructors Constructor Description DurationType(java.time.Duration duration)Create a duration type from a duration from the log.DurationType(java.time.Duration duration, int precision)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(DurationType o)Make the duration type comparable.booleanequals(java.lang.Object o)java.time.DurationgetDuration()Get the duration for this duration type.inthashCode()java.lang.StringtoString()Name for the duration type.
-
-
-
Field Detail
-
YEAR_PRECISION
public static final int YEAR_PRECISION
- See Also:
- Constant Field Values
-
MONTH_PRECISION
public static final int MONTH_PRECISION
- See Also:
- Constant Field Values
-
DAY_PRECISION
public static final int DAY_PRECISION
- See Also:
- Constant Field Values
-
HOUR_PRECISION
public static final int HOUR_PRECISION
- See Also:
- Constant Field Values
-
MINUTE_PRECISION
public static final int MINUTE_PRECISION
- See Also:
- Constant Field Values
-
SECOND_PRECISION
public static final int SECOND_PRECISION
- See Also:
- Constant Field Values
-
MILLIS_PRECISION
public static final int MILLIS_PRECISION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDuration
public java.time.Duration getDuration()
Get the duration for this duration type.- Returns:
- THe duration for this duration type.
-
toString
public java.lang.String toString()
Name for the duration type. Use duration string.- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(DurationType o)
Make the duration type comparable.- Specified by:
compareToin interfacejava.lang.Comparable<DurationType>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-