| org.joda.time.ReadWritableInterval
All known Subclasses: org.joda.time.MutableInterval,
ReadWritableInterval | public interface ReadWritableInterval extends ReadableInterval(Code) | | Writable interface for an interval.
author: Stephen Colebourne author: Brian S O'Neill since: 1.0 |
setChronology | void setChronology(Chronology chrono)(Code) | | Sets the chronology of this time interval.
Parameters: chrono - the chronology to use, null means ISO default |
setDurationAfterStart | void setDurationAfterStart(ReadableDuration duration)(Code) | | 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 throws: ArithmeticException - if the end instant exceeds the capacity of a long |
setDurationBeforeEnd | void setDurationBeforeEnd(ReadableDuration duration)(Code) | | 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 throws: ArithmeticException - if the start instant exceeds the capacity of a long |
setEndMillis | void setEndMillis(long millisInstant)(Code) | | 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 |
setInterval | void setInterval(long startInstant, long endInstant)(Code) | | Sets this interval from two millisecond instants.
Parameters: startInstant - the start of the time interval Parameters: endInstant - the start of the time interval throws: IllegalArgumentException - if the end is before the start |
setInterval | void setInterval(ReadableInstant startInstant, ReadableInstant endInstant)(Code) | | Sets this interval from two instants.
Parameters: startInstant - the start of the time interval Parameters: endInstant - the start of the time interval throws: IllegalArgumentException - if the end is before the start |
setPeriodAfterStart | void setPeriodAfterStart(ReadablePeriod period)(Code) | | 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 throws: ArithmeticException - if the end instant exceeds the capacity of a long |
setPeriodBeforeEnd | void setPeriodBeforeEnd(ReadablePeriod period)(Code) | | 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 throws: ArithmeticException - if the start instant exceeds the capacity of a long |
setStartMillis | void setStartMillis(long millisInstant)(Code) | | 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 |
|
|