org.joda.time
Interface ReadWritableInterval
- ReadableInterval
- MutableInterval
public interface ReadWritableInterval
Writable interface for an interval.
- Stephen Colebourne
- Brian S O'Neill
contains, contains, equals, getChronology, getEnd, getEndMillis, getStart, getStartMillis, hashCode, isAfter, isAfter, isBefore, isBefore, overlaps, toDuration, toDurationMillis, toInterval, toMutableInterval, toPeriod, toPeriod, toString |
setChronology
public void setChronology(Chronology chrono)
Sets the chronology of this time interval.
chrono - the chronology to use, null means ISO default
setDurationAfterStart
public void setDurationAfterStart(ReadableDuration duration)
Sets the duration of this time interval, preserving the start instant.
duration - new duration for interval
setDurationBeforeEnd
public void setDurationBeforeEnd(ReadableDuration duration)
Sets the duration of this time interval, preserving the end instant.
duration - new duration for interval
setEnd
public void setEnd(ReadableInstant instant)
Sets the end of this time interval as an Instant.
instant - the end of the time interval
setEndMillis
public void setEndMillis(long millisInstant)
Sets the end of this time interval.
millisInstant - the end of the time interval,
millisecond instant from 1970-01-01T00:00:00Z
setInterval
public void setInterval(long startInstant,
long endInstant) Sets this interval from two millisecond instants.
startInstant - the start of the time intervalendInstant - the start of the time interval
setInterval
public void setInterval(ReadableInstant startInstant,
ReadableInstant endInstant) Sets this interval from two instants.
startInstant - the start of the time intervalendInstant - the start of the time interval
setInterval
public void setInterval(ReadableInterval interval)
Sets this interval to be the same as another.
interval - the interval to copy
setPeriodAfterStart
public void setPeriodAfterStart(ReadablePeriod period)
Sets the period of this time interval, preserving the start instant.
period - new period for interval, null means zero length
setPeriodBeforeEnd
public void setPeriodBeforeEnd(ReadablePeriod period)
Sets the period of this time interval, preserving the end instant.
period - new period for interval, null means zero length
setStart
public void setStart(ReadableInstant instant)
Sets the start of this time interval as an Instant.
instant - the start of the time interval
setStartMillis
public void setStartMillis(long millisInstant)
Sets the start of this time interval.
millisInstant - the start of the time interval,
millisecond instant from 1970-01-01T00:00:00Z
Copyright (c) 2001-2006 - Joda.org