Package | Description |
---|---|
org.joda.time |
Provides support for dates, times, time zones, durations, intervals, and
partials.
|
org.joda.time.base |
Implementation package providing abstract and base time classes.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ReadWritableInterval
Writable interface for an interval.
|
Modifier and Type | Class and Description |
---|---|
class |
Interval
Interval is the standard implementation of an immutable time interval.
|
class |
MutableInterval
MutableInterval is the standard implementation of a mutable time interval.
|
Modifier and Type | Method and Description |
---|---|
static ReadableInterval |
DateTimeUtils.getReadableInterval(ReadableInterval interval)
Gets the interval handling null.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Interval.abuts(ReadableInterval interval)
Does this interval abut with the interval specified.
|
void |
ReadWritablePeriod.add(ReadableInterval interval)
Adds an interval to this one by dividing the interval into
fields and then adding each field in turn.
|
void |
MutablePeriod.add(ReadableInterval interval)
Adds an interval to this one by dividing the interval into
fields and calling
MutablePeriod.add(ReadablePeriod) . |
boolean |
ReadableInterval.contains(ReadableInterval interval)
Does this time interval contain the specified time interval.
|
static Days |
Days.daysIn(ReadableInterval interval)
Creates a
Days representing the number of whole days
in the specified interval. |
Interval |
Interval.gap(ReadableInterval interval)
Gets the gap between this interval and another interval.
|
static Chronology |
DateTimeUtils.getIntervalChronology(ReadableInterval interval)
Gets the chronology from the specified interval object handling null.
|
static ReadableInterval |
DateTimeUtils.getReadableInterval(ReadableInterval interval)
Gets the interval handling null.
|
static Hours |
Hours.hoursIn(ReadableInterval interval)
Creates a
Hours representing the number of whole hours
in the specified interval. |
boolean |
ReadableInterval.isAfter(ReadableInterval interval)
Is this time interval entirely after the specified interval.
|
boolean |
ReadableInterval.isBefore(ReadableInterval interval)
Is this time interval entirely before the specified interval.
|
static Minutes |
Minutes.minutesIn(ReadableInterval interval)
Creates a
Minutes representing the number of whole minutes
in the specified interval. |
static Months |
Months.monthsIn(ReadableInterval interval)
Creates a
Months representing the number of whole months
in the specified interval. |
Interval |
Interval.overlap(ReadableInterval interval)
Gets the overlap between this interval and another interval.
|
boolean |
ReadableInterval.overlaps(ReadableInterval interval)
Does this time interval overlap the specified time interval.
|
static Seconds |
Seconds.secondsIn(ReadableInterval interval)
Creates a
Seconds representing the number of whole seconds
in the specified interval. |
void |
ReadWritableInterval.setInterval(ReadableInterval interval)
Sets this interval to be the same as another.
|
void |
MutableInterval.setInterval(ReadableInterval interval)
Sets this interval to be the same as another.
|
void |
ReadWritablePeriod.setPeriod(ReadableInterval interval)
Sets all the fields in one go from an interval dividing the
fields using the period type.
|
void |
MutablePeriod.setPeriod(ReadableInterval interval)
Sets all the fields in one go from an interval using the ISO chronology
and dividing the fields using the period type.
|
static Weeks |
Weeks.weeksIn(ReadableInterval interval)
Creates a
Weeks representing the number of whole weeks
in the specified interval. |
static Years |
Years.yearsIn(ReadableInterval interval)
Creates a
Years representing the number of whole years
in the specified interval. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractInterval
AbstractInterval provides the common behaviour for time intervals.
|
class |
BaseInterval
BaseInterval is an abstract implementation of ReadableInterval that stores
data in two
long millisecond fields. |
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractInterval.contains(ReadableInterval interval)
Does this time interval contain the specified time interval.
|
boolean |
AbstractInterval.isAfter(ReadableInterval interval)
Is this time interval entirely after the specified interval.
|
boolean |
AbstractInterval.isBefore(ReadableInterval interval)
Is this time interval entirely before the specified instant.
|
boolean |
AbstractInterval.isEqual(ReadableInterval other)
Is this interval equal to the specified interval ignoring the chronology.
|
boolean |
AbstractInterval.overlaps(ReadableInterval interval)
Does this time interval overlap the specified time interval.
|
Copyright © 2002–2021 Joda.org. All rights reserved.