public interface

ReadWritableInterval

implements ReadableInterval
org.joda.time.ReadWritableInterval
Known Indirect Subclasses

Class Overview

Writable interface for an interval.

Summary

Public Methods
abstract void setChronology(Chronology chrono)
Sets the chronology of this time interval.
abstract void setDurationAfterStart(ReadableDuration duration)
Sets the duration of this time interval, preserving the start instant.
abstract void setDurationBeforeEnd(ReadableDuration duration)
Sets the duration of this time interval, preserving the end instant.
abstract void setEnd(ReadableInstant instant)
Sets the end of this time interval as an Instant.
abstract void setEndMillis(long millisInstant)
Sets the end of this time interval.
abstract void setInterval(ReadableInstant startInstant, ReadableInstant endInstant)
Sets this interval from two instants.
abstract void setInterval(ReadableInterval interval)
Sets this interval to be the same as another.
abstract void setInterval(long startInstant, long endInstant)
Sets this interval from two millisecond instants.
abstract void setPeriodAfterStart(ReadablePeriod period)
Sets the period of this time interval, preserving the start instant.
abstract void setPeriodBeforeEnd(ReadablePeriod period)
Sets the period of this time interval, preserving the end instant.
abstract void setStart(ReadableInstant instant)
Sets the start of this time interval as an Instant.
abstract void setStartMillis(long millisInstant)
Sets the start of this time interval.
[Expand]
Inherited Methods
From interface org.joda.time.ReadableInterval

Public Methods

public abstract void setChronology (Chronology chrono)

Sets the chronology of this time interval.

Parameters
chrono the chronology to use, null means ISO default

public abstract void setDurationAfterStart (ReadableDuration duration)

Sets the duration of this time interval, preserving the start instant.

Parameters
duration new duration for interval
Throws
IllegalArgumentException if the end is before the start
ArithmeticException if the end instant exceeds the capacity of a long

public abstract void setDurationBeforeEnd (ReadableDuration duration)

Sets the duration of this time interval, preserving the end instant.

Parameters
duration new duration for interval
Throws
IllegalArgumentException if the end is before the start
ArithmeticException if the start instant exceeds the capacity of a long

public abstract void setEnd (ReadableInstant instant)

Sets the end of this time interval as an Instant.

Parameters
instant the end of the time interval
Throws
IllegalArgumentException if the end is before the start

public abstract void setEndMillis (long millisInstant)

Sets the end of this time interval.

Parameters
millisInstant the end of the time interval, millisecond instant from 1970-01-01T00:00:00Z
Throws
IllegalArgumentException if the end is before the start

public abstract void setInterval (ReadableInstant startInstant, ReadableInstant endInstant)

Sets this interval from two instants.

Parameters
startInstant the start of the time interval
endInstant the start of the time interval
Throws
IllegalArgumentException if the end is before the start

public abstract void setInterval (ReadableInterval interval)

Sets this interval to be the same as another.

Parameters
interval the interval to copy
Throws
IllegalArgumentException if the end is before the start

public abstract void setInterval (long startInstant, long endInstant)

Sets this interval from two millisecond instants.

Parameters
startInstant the start of the time interval
endInstant the start of the time interval
Throws
IllegalArgumentException if the end is before the start

public abstract void setPeriodAfterStart (ReadablePeriod period)

Sets the period of this time interval, preserving the start instant.

Parameters
period new period for interval, null means zero length
Throws
IllegalArgumentException if the end is before the start
ArithmeticException if the end instant exceeds the capacity of a long

public abstract void setPeriodBeforeEnd (ReadablePeriod period)

Sets the period of this time interval, preserving the end instant.

Parameters
period new period for interval, null means zero length
Throws
IllegalArgumentException if the end is before the start
ArithmeticException if the start instant exceeds the capacity of a long

public abstract void setStart (ReadableInstant instant)

Sets the start of this time interval as an Instant.

Parameters
instant the start of the time interval
Throws
IllegalArgumentException if the end is before the start

public abstract void setStartMillis (long millisInstant)

Sets the start of this time interval.

Parameters
millisInstant the start of the time interval, millisecond instant from 1970-01-01T00:00:00Z
Throws
IllegalArgumentException if the end is before the start