Class BaseInterval

  • All Implemented Interfaces:
    java.io.Serializable, ReadableInterval
    Direct Known Subclasses:
    Interval, MutableInterval

    public abstract class BaseInterval
    extends AbstractInterval
    implements ReadableInterval, java.io.Serializable
    BaseInterval is an abstract implementation of ReadableInterval that stores data in two long millisecond fields.

    This class should generally not be used directly by API users. The ReadableInterval interface should be used when different kinds of interval objects are to be referenced.

    BaseInterval subclasses may be mutable and not thread-safe.

    Since:
    1.0
    See Also:
    Serialized Form
    • Method Detail

      • getStartMillis

        public long getStartMillis()
        Gets the start of this time interval which is inclusive.
        Specified by:
        getStartMillis in interface ReadableInterval
        Returns:
        the start of the time interval, millisecond instant from 1970-01-01T00:00:00Z
      • getEndMillis

        public long getEndMillis()
        Gets the end of this time interval which is exclusive.
        Specified by:
        getEndMillis in interface ReadableInterval
        Returns:
        the end of the time interval, millisecond instant from 1970-01-01T00:00:00Z