Class LocalTimeInterval

java.lang.Object
pro.taskana.common.internal.Interval<LocalTime>
pro.taskana.common.api.LocalTimeInterval
All Implemented Interfaces:
Comparable<LocalTimeInterval>

public class LocalTimeInterval extends Interval<LocalTime> implements Comparable<LocalTimeInterval>
LocalTimeInterval provides a closed interval using LocalTime.

That means both begin and end must not be null.

Note: this class has a natural ordering that is inconsistent with equals.

  • Constructor Details

  • Method Details

    • compareTo

      public int compareTo(LocalTimeInterval o)
      Compares two LocalTimeInterval objects in regard to their begin.
      Specified by:
      compareTo in interface Comparable<LocalTimeInterval>
      Parameters:
      o - the LocalTimeInterval to be compared.
      Returns:
      a negative value if o begins before this, 0 if both have the same begin and a positive value if o begins after this.