Uses of Interface
org.joda.time.ReadableDuration
Packages that use ReadableDuration
Package
Description
Provides support for dates, times, time zones, durations, intervals, and
partials.
Implementation package providing abstract and base time classes.
-
Uses of ReadableDuration in org.joda.time
Classes in org.joda.time that implement ReadableDurationModifier and TypeClassDescriptionfinal classAn immutable duration specifying a length of time in milliseconds.Methods in org.joda.time with parameters of type ReadableDurationModifier and TypeMethodDescriptionvoidMutableDateTime.add(ReadableDuration duration) Adds a duration to this instant.voidMutableDateTime.add(ReadableDuration duration, int scalar) Adds a duration to this instant specifying how many times to add.voidMutablePeriod.add(ReadableDuration duration) Adds a duration to this one by dividing the duration into fields and callingMutablePeriod.add(ReadablePeriod).voidReadWritableInstant.add(ReadableDuration duration) Adds a duration to this instant.voidReadWritableInstant.add(ReadableDuration duration, int scalar) Adds a duration to this instant specifying how many times to add.static final longDateTimeUtils.getDurationMillis(ReadableDuration duration) Gets the millisecond duration from the specified duration object handling null.booleanReadableDuration.isEqual(ReadableDuration duration) Is the length of this duration equal to the duration passed in.booleanReadableDuration.isLongerThan(ReadableDuration duration) Is the length of this duration longer than the duration passed in.booleanReadableDuration.isShorterThan(ReadableDuration duration) Is the length of this duration shorter than the duration passed in.DateMidnight.minus(ReadableDuration duration) Deprecated.Returns a copy of this date with the specified duration taken away.DateTime.minus(ReadableDuration duration) Returns a copy of this datetime with the specified duration taken away.Duration.minus(ReadableDuration amount) Returns a new duration with this length minus that specified.Instant.minus(ReadableDuration duration) Gets a copy of this instant with the specified duration taken away.LocalDateTime.minus(ReadableDuration duration) Returns a copy of this datetime with the specified duration taken away.DateMidnight.plus(ReadableDuration duration) Deprecated.Returns a copy of this date with the specified duration added.DateTime.plus(ReadableDuration duration) Returns a copy of this datetime with the specified duration added.Duration.plus(ReadableDuration amount) Returns a new duration with this length plus that specified.Instant.plus(ReadableDuration duration) Gets a copy of this instant with the specified duration added.LocalDateTime.plus(ReadableDuration duration) Returns a copy of this datetime with the specified duration added.voidMutableInterval.setDurationAfterStart(ReadableDuration duration) Sets the duration of this time interval, preserving the start instant.voidReadWritableInterval.setDurationAfterStart(ReadableDuration duration) Sets the duration of this time interval, preserving the start instant.voidMutableInterval.setDurationBeforeEnd(ReadableDuration duration) Sets the duration of this time interval, preserving the end instant.voidReadWritableInterval.setDurationBeforeEnd(ReadableDuration duration) Sets the duration of this time interval, preserving the end instant.voidMutablePeriod.setPeriod(ReadableDuration duration) Sets all the fields in one go from a duration dividing the fields using the period type.voidMutablePeriod.setPeriod(ReadableDuration duration, Chronology chrono) Sets all the fields in one go from a duration dividing the fields using the period type.DateMidnight.withDurationAdded(ReadableDuration durationToAdd, int scalar) Deprecated.Returns a copy of this date with the specified duration added.DateTime.withDurationAdded(ReadableDuration durationToAdd, int scalar) Returns a copy of this datetime with the specified duration added.Duration.withDurationAdded(ReadableDuration durationToAdd, int scalar) Returns a new duration with this length plus that specified multiplied by the scalar.Instant.withDurationAdded(ReadableDuration durationToAdd, int scalar) Gets a copy of this instant with the specified duration added.LocalDateTime.withDurationAdded(ReadableDuration durationToAdd, int scalar) Returns a copy of this datetime with the specified duration added.Interval.withDurationAfterStart(ReadableDuration duration) Creates a new interval with the specified duration after the start instant.Interval.withDurationBeforeEnd(ReadableDuration duration) Creates a new interval with the specified duration before the end instant.Constructors in org.joda.time with parameters of type ReadableDurationModifierConstructorDescriptionInterval(ReadableDuration duration, ReadableInstant end) Constructs an interval from a millisecond duration and an end instant.Interval(ReadableInstant start, ReadableDuration duration) Constructs an interval from a start instant and a duration.MutableInterval(ReadableDuration duration, ReadableInstant end) Constructs an interval from a millisecond duration and an end instant.MutableInterval(ReadableInstant start, ReadableDuration duration) Constructs an interval from a start instant and a duration.MutablePeriod(ReadableDuration duration, ReadableInstant endInstant) Creates a period from the given duration and end point.MutablePeriod(ReadableDuration duration, ReadableInstant endInstant, PeriodType type) Creates a period from the given duration and end point.MutablePeriod(ReadableInstant startInstant, ReadableDuration duration) Creates a period from the given start point and the duration.MutablePeriod(ReadableInstant startInstant, ReadableDuration duration, PeriodType type) Creates a period from the given start point and the duration.Period(ReadableDuration duration, ReadableInstant endInstant) Creates a period from the given duration and end point.Period(ReadableDuration duration, ReadableInstant endInstant, PeriodType type) Creates a period from the given duration and end point.Period(ReadableInstant startInstant, ReadableDuration duration) Creates a period from the given start point and the duration.Period(ReadableInstant startInstant, ReadableDuration duration, PeriodType type) Creates a period from the given start point and the duration. -
Uses of ReadableDuration in org.joda.time.base
Classes in org.joda.time.base that implement ReadableDurationModifier and TypeClassDescriptionclassAbstractDuration provides the common behaviour for duration classes.classBaseDuration is an abstract implementation of ReadableDuration that stores data in alongduration milliseconds field.Methods in org.joda.time.base with parameters of type ReadableDurationModifier and TypeMethodDescriptionintAbstractDuration.compareTo(ReadableDuration other) Compares this duration with the specified duration based on length and direction.booleanAbstractDuration.isEqual(ReadableDuration duration) Is the length of this duration equal to the duration passed in.booleanAbstractDuration.isLongerThan(ReadableDuration duration) Is the length of this duration longer than the duration passed in.booleanAbstractDuration.isShorterThan(ReadableDuration duration) Is the length of this duration shorter than the duration passed in.Constructors in org.joda.time.base with parameters of type ReadableDurationModifierConstructorDescriptionprotectedBaseInterval(ReadableDuration duration, ReadableInstant end) Constructs an interval from a millisecond duration and an end instant.protectedBaseInterval(ReadableInstant start, ReadableDuration duration) Constructs an interval from a start instant and a duration.protectedBasePeriod(ReadableDuration duration, ReadableInstant endInstant, PeriodType type) Creates a period from the given duration and end point.protectedBasePeriod(ReadableInstant startInstant, ReadableDuration duration, PeriodType type) Creates a period from the given start point and duration.