Class TimeInterval

Direct Known Subclasses:
ParameterArchive.Partition, PartitionManager.Interval

public class TimeInterval extends Object
Time interval where both ends can be open.
  • Constructor Details

    • TimeInterval

      public TimeInterval(long start, long end)
    • TimeInterval

      public TimeInterval()
      Creates a TimeInterval with no start and no end
    • TimeInterval

      public TimeInterval(TimeInterval other)
  • Method Details

    • openStart

      public static TimeInterval openStart(long end)
      creates a TimeInterval with no start but with an end
    • openEnd

      public static TimeInterval openEnd(long start)
    • hasStart

      public boolean hasStart()
    • hasEnd

      public boolean hasEnd()
    • setStart

      public void setStart(long start)
    • getStart

      public long getStart()
    • setEnd

      public void setEnd(long end)
    • getEnd

      public long getEnd()
    • contains0

      public boolean contains0(long t)
      Checks that [this.start, this.end) contains t
    • toString

      public String toString()
      toString in class Object
    • toStringEncoded

      public String toStringEncoded()