Class Interval

java.lang.Object
com.aoapps.sql.Interval
All Implemented Interfaces:
Serializable, Comparable<Interval>

public final class Interval extends Object implements Serializable, Comparable<Interval>
Encapsulates an interval in seconds.
Author:
AO Industries, Inc.
See Also:
  • Constructor Details

    • Interval

      public Interval(long seconds)
    • Interval

      public Interval(long minutes, long seconds)
    • Interval

      public Interval(long hours, long minutes, long seconds)
  • Method Details

    • getInterval

      public long getInterval()
      Gets the interval in seconds.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public static String toString(long interval)
    • compareTo

      public int compareTo(Interval o)
      Specified by:
      compareTo in interface Comparable<Interval>