Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.joda.time
Class TestInterval_Constructors.MockInterval  view TestInterval_Constructors.MockInterval download TestInterval_Constructors.MockInterval.java

java.lang.Object
  extended byorg.joda.time.TestInterval_Constructors.MockInterval
All Implemented Interfaces:
ReadableInterval
Enclosing class:
TestInterval_Constructors

class TestInterval_Constructors.MockInterval
extends java.lang.Object
implements ReadableInterval


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:
getChronology in interface ReadableInterval

getStartMillis

public long getStartMillis()
Description copied from interface: ReadableInterval
Gets the start of this time interval which is inclusive.

Specified by:
getStartMillis in interface ReadableInterval

getStart

public DateTime getStart()
Description copied from interface: ReadableInterval
Gets the start of this time interval, which is inclusive, as a DateTime.

Specified by:
getStart in interface ReadableInterval

getEndMillis

public long getEndMillis()
Description copied from interface: ReadableInterval
Gets the end of this time interval which is exclusive.

Specified by:
getEndMillis in interface ReadableInterval

getEnd

public DateTime getEnd()
Description copied from interface: ReadableInterval
Gets the end of this time interval, which is exclusive, as a DateTime.

Specified by:
getEnd in interface ReadableInterval

toDurationMillis

public long toDurationMillis()
Description copied from interface: ReadableInterval
Gets the millisecond duration of this time interval.

Specified by:
toDurationMillis in interface ReadableInterval

toDuration

public Duration toDuration()
Description copied from interface: ReadableInterval
Gets the millisecond duration of this time interval.

Specified by:
toDuration in interface ReadableInterval

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:
contains in interface ReadableInterval

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:
contains in interface ReadableInterval

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:
overlaps in interface ReadableInterval

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:
isBefore in interface ReadableInterval

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:
isBefore in interface ReadableInterval

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:
isAfter in interface ReadableInterval

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:
isAfter in interface ReadableInterval

toInterval

public Interval toInterval()
Description copied from interface: ReadableInterval
Get this interval as an immutable Interval object.

This will either typecast this instance, or create a new Interval.

Specified by:
toInterval in interface ReadableInterval

toMutableInterval

public MutableInterval toMutableInterval()
Description copied from interface: ReadableInterval
Get this time interval as a MutableInterval.

This will always return a new MutableInterval with the same interval.

Specified by:
toMutableInterval in interface ReadableInterval

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:
toPeriod in interface ReadableInterval

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:
toPeriod in interface ReadableInterval