|
|||||||||
| Home >> All >> org >> joda >> [ time overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.joda.time
Class TestInterval_Constructors.MockInterval

java.lang.Objectorg.joda.time.TestInterval_Constructors.MockInterval
- All Implemented Interfaces:
- ReadableInterval
- Enclosing class:
- TestInterval_Constructors
- class TestInterval_Constructors.MockInterval
- extends java.lang.Object
- implements ReadableInterval
- extends java.lang.Object
| Constructor Summary | |
(package private) |
TestInterval_Constructors.MockInterval()
|
| Method Summary | |
boolean |
contains(long millisInstant)
|
boolean |
contains(ReadableInstant instant)
Does this time interval contain the specified instant. |
boolean |
contains(ReadableInterval interval)
Does this time interval contain the specified time interval completely. |
boolean |
containsNow()
|
Chronology |
getChronology()
Gets the chronology of the interval, which is the chronology of the first datetime. |
DateTime |
getEnd()
Gets the end of this time interval, which is exclusive, as a DateTime. |
long |
getEndMillis()
Gets the end of this time interval which is exclusive. |
DateTime |
getStart()
Gets the start of this time interval, which is inclusive, as a DateTime. |
long |
getStartMillis()
Gets the start of this time interval which is inclusive. |
boolean |
isAfter(ReadableInstant instant)
Is this time interval after the specified instant. |
boolean |
isAfter(ReadableInterval interval)
Is this time interval entirely after the specified interval. |
boolean |
isBefore(ReadableInstant instant)
Is this time interval before the specified instant. |
boolean |
isBefore(ReadableInterval interval)
Is this time interval entirely before the specified interval. |
boolean |
overlaps(ReadableInterval interval)
Does this time interval overlap the specified time interval. |
Duration |
toDuration()
Gets the millisecond duration of this time interval. |
long |
toDurationMillis()
Gets the millisecond duration of this time interval. |
Interval |
toInterval()
Get this interval as an immutable Interval object. |
MutableInterval |
toMutableInterval()
Get this time interval as a MutableInterval. |
Period |
toPeriod()
Converts the duration of the interval to a period using the standard period type. |
Period |
toPeriod(PeriodType type)
Converts the duration of the interval to a period using the specified period type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.joda.time.ReadableInterval |
equals, hashCode, toString |
| Constructor Detail |
TestInterval_Constructors.MockInterval
TestInterval_Constructors.MockInterval()
| Method Detail |
getChronology
public Chronology getChronology()
- Description copied from interface:
ReadableInterval - Gets the chronology of the interval, which is the chronology of the first datetime.
- Specified by:
getChronologyin interfaceReadableInterval
getStartMillis
public long getStartMillis()
- Description copied from interface:
ReadableInterval - Gets the start of this time interval which is inclusive.
- Specified by:
getStartMillisin interfaceReadableInterval
getStart
public DateTime getStart()
- Description copied from interface:
ReadableInterval - Gets the start of this time interval, which is inclusive, as a DateTime.
- Specified by:
getStartin interfaceReadableInterval
getEndMillis
public long getEndMillis()
- Description copied from interface:
ReadableInterval - Gets the end of this time interval which is exclusive.
- Specified by:
getEndMillisin interfaceReadableInterval
getEnd
public DateTime getEnd()
- Description copied from interface:
ReadableInterval - Gets the end of this time interval, which is exclusive, as a DateTime.
- Specified by:
getEndin interfaceReadableInterval
toDurationMillis
public long toDurationMillis()
- Description copied from interface:
ReadableInterval - Gets the millisecond duration of this time interval.
- Specified by:
toDurationMillisin interfaceReadableInterval
toDuration
public Duration toDuration()
- Description copied from interface:
ReadableInterval - Gets the millisecond duration of this time interval.
- Specified by:
toDurationin interfaceReadableInterval
contains
public boolean contains(long millisInstant)
containsNow
public boolean containsNow()
contains
public boolean contains(ReadableInstant instant)
- Description copied from interface:
ReadableInterval - Does this time interval contain the specified instant.
Intervals are inclusive of the start instant and exclusive of the end.
- Specified by:
containsin interfaceReadableInterval
contains
public boolean contains(ReadableInterval interval)
- Description copied from interface:
ReadableInterval - Does this time interval contain the specified time interval completely.
Intervals are inclusive of the start instant and exclusive of the end.
- Specified by:
containsin interfaceReadableInterval
overlaps
public boolean overlaps(ReadableInterval interval)
- Description copied from interface:
ReadableInterval - Does this time interval overlap the specified time interval.
The intervals overlap if at least some of the time interval is in common. Intervals are inclusive of the start instant and exclusive of the end.
- Specified by:
overlapsin interfaceReadableInterval
isBefore
public boolean isBefore(ReadableInstant instant)
- Description copied from interface:
ReadableInterval - Is this time interval before the specified instant.
Intervals are inclusive of the start instant and exclusive of the end.
- Specified by:
isBeforein interfaceReadableInterval
isBefore
public boolean isBefore(ReadableInterval interval)
- Description copied from interface:
ReadableInterval - Is this time interval entirely before the specified interval.
Intervals are inclusive of the start instant and exclusive of the end.
- Specified by:
isBeforein interfaceReadableInterval
isAfter
public boolean isAfter(ReadableInstant instant)
- Description copied from interface:
ReadableInterval - Is this time interval after the specified instant.
Intervals are inclusive of the start instant and exclusive of the end.
- Specified by:
isAfterin interfaceReadableInterval
isAfter
public boolean isAfter(ReadableInterval interval)
- Description copied from interface:
ReadableInterval - Is this time interval entirely after the specified interval.
Intervals are inclusive of the start instant and exclusive of the end.
- Specified by:
isAfterin interfaceReadableInterval
toInterval
public Interval toInterval()
- Description copied from interface:
ReadableInterval - Get this interval as an immutable
Intervalobject.This will either typecast this instance, or create a new
Interval.- Specified by:
toIntervalin interfaceReadableInterval
toMutableInterval
public MutableInterval toMutableInterval()
- Description copied from interface:
ReadableInterval - Get this time interval as a
MutableInterval.This will always return a new
MutableIntervalwith the same interval.- Specified by:
toMutableIntervalin interfaceReadableInterval
toPeriod
public Period toPeriod()
- Description copied from interface:
ReadableInterval - Converts the duration of the interval to a period using the
standard period type.
This method should be used to exract the field values describing the difference between the start and end instants.
- Specified by:
toPeriodin interfaceReadableInterval
toPeriod
public Period toPeriod(PeriodType type)
- Description copied from interface:
ReadableInterval - Converts the duration of the interval to a period using the
specified period type.
This method should be used to exract the field values describing the difference between the start and end instants.
- Specified by:
toPeriodin interfaceReadableInterval
|
|||||||||
| Home >> All >> org >> joda >> [ time overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.joda.time.TestInterval_Constructors.MockInterval