Java org.joda.time Interval fields, constructors, methods, implement or subclass

Example usage for Java org.joda.time Interval fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.joda.time Interval.

The text is from its open source code.

Subclass

org.joda.time.Interval has subclasses.
Click this link to see all its subclasses.

Constructor

Interval(Object interval)
Constructs a time interval by converting or copying from another object.
Interval(long startInstant, long endInstant)
Constructs an interval from a start and end instant with the ISO default chronology in the default time zone.
Interval(ReadableInstant start, ReadableInstant end)
Constructs an interval from a start and end instant.
Interval(ReadableInstant start, ReadableDuration duration)
Constructs an interval from a start instant and a duration.
Interval(ReadableDuration duration, ReadableInstant end)
Constructs an interval from a millisecond duration and an end instant.
Interval(ReadableInstant start, ReadablePeriod period)
Constructs an interval from a start instant and a time period.
Interval(ReadablePeriod period, ReadableInstant end)
Constructs an interval from a time period and an end instant.
Interval(Object interval, Chronology chronology)
Constructs a time interval by converting or copying from another object, overriding the chronology.
Interval(long startInstant, long endInstant, DateTimeZone zone)
Constructs an interval from a start and end instant with the ISO default chronology in the specified time zone.
Interval(long startInstant, long endInstant, Chronology chronology)
Constructs an interval from a start and end instant with the specified chronology.

Method

booleanabuts(ReadableInterval interval)
Does this interval abut with the interval specified.
booleancontains(long millisInstant)
Does this time interval contain the specified millisecond instant.
booleancontainsNow()
Does this time interval contain the current instant.
booleanequals(Object readableInterval)
Compares this object with the specified object for equality based on start and end millis plus the chronology.
Intervalgap(ReadableInterval interval)
Gets the gap between this interval and another interval.
ChronologygetChronology()
Gets the chronology of this interval.
DateTimegetEnd()
Gets the end of this time interval, which is exclusive, as a DateTime.
longgetEndMillis()
Gets the end of this time interval which is exclusive.
DateTimegetStart()
Gets the start of this time interval, which is inclusive, as a DateTime.
longgetStartMillis()
Gets the start of this time interval which is inclusive.
booleanisAfter(long millisInstant)
Is this time interval after the specified millisecond instant.
booleanisBefore(long millisInstant)
Is this time interval before the specified millisecond instant.
booleanisEqual(ReadableInterval other)
Is this interval equal to the specified interval ignoring the chronology.
Intervaloverlap(ReadableInterval interval)
Gets the overlap between this interval and another interval.
booleanoverlaps(ReadableInterval interval)
Does this time interval overlap the specified time interval.
Intervalparse(String str)
Parses an Interval from the specified string.
DurationtoDuration()
Gets the duration of this time interval.
longtoDurationMillis()
Gets the duration of this time interval in milliseconds.
PeriodtoPeriod()
Converts the duration of the interval to a Period using the All period type.
PeriodtoPeriod(PeriodType type)
Converts the duration of the interval to a Period using the specified period type.
StringtoString()
Output a string in ISO8601 interval format.
IntervalwithEnd(ReadableInstant end)
Creates a new interval with the specified end instant.
IntervalwithStart(ReadableInstant start)
Creates a new interval with the specified start instant.