Class DurationType

  • All Implemented Interfaces:
    java.lang.Comparable<DurationType>

    public class DurationType
    extends java.lang.Object
    implements java.lang.Comparable<DurationType>
    • Constructor Detail

      • DurationType

        public DurationType​(java.time.Duration duration)
        Create a duration type from a duration from the log.
        Parameters:
        duration - The duration from the log.
      • DurationType

        public DurationType​(java.time.Duration duration,
                            int precision)
    • 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:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(DurationType o)
        Make the duration type comparable.
        Specified by:
        compareTo in interface java.lang.Comparable<DurationType>
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object