Package org.joda.time.base
Class BaseInterval
- java.lang.Object
-
- org.joda.time.base.AbstractInterval
-
- org.joda.time.base.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 twolongmillisecond fields.This class should generally not be used directly by API users. The
ReadableIntervalinterface 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChronologygetChronology()Gets the chronology of this interval.longgetEndMillis()Gets the end of this time interval which is exclusive.longgetStartMillis()Gets the start of this time interval which is inclusive.-
Methods inherited from class org.joda.time.base.AbstractInterval
contains, contains, contains, containsNow, equals, getEnd, getStart, hashCode, isAfter, isAfter, isAfter, isAfterNow, isBefore, isBefore, isBefore, isBeforeNow, isEqual, overlaps, toDuration, toDurationMillis, toInterval, toMutableInterval, toPeriod, toPeriod, toString
-
Methods inherited from interface org.joda.time.ReadableInterval
contains, contains, equals, getEnd, getStart, hashCode, isAfter, isAfter, isBefore, isBefore, overlaps, toDuration, toDurationMillis, toInterval, toMutableInterval, toPeriod, toPeriod, toString
-
-
-
-
Method Detail
-
getChronology
public Chronology getChronology()
Gets the chronology of this interval.- Specified by:
getChronologyin interfaceReadableInterval- Returns:
- the chronology
-
getStartMillis
public long getStartMillis()
Gets the start of this time interval which is inclusive.- Specified by:
getStartMillisin interfaceReadableInterval- 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:
getEndMillisin interfaceReadableInterval- Returns:
- the end of the time interval, millisecond instant from 1970-01-01T00:00:00Z
-
-