Uses of Interface
org.joda.time.ReadablePeriod
-
Packages that use ReadablePeriod Package Description org.joda.time Provides support for dates, times, time zones, durations, intervals, and partials.org.joda.time.base Implementation package providing abstract and base time classes.org.joda.time.chrono Package containing the chronology classes which define the calendar systems.org.joda.time.format Provides printing and parsing support for instants and durations. -
-
Uses of ReadablePeriod in org.joda.time
Subinterfaces of ReadablePeriod in org.joda.time Modifier and Type Interface Description interfaceReadWritablePeriodDefines a duration of time that can be queried and modified using datetime fields.Classes in org.joda.time that implement ReadablePeriod Modifier and Type Class Description classDaysAn immutable time period representing a number of days.classHoursAn immutable time period representing a number of hours.classMinutesAn immutable time period representing a number of minutes.classMonthsAn immutable time period representing a number of months.classMutablePeriodStandard mutable time period implementation.classPeriodAn immutable time period specifying a set of duration field values.classSecondsAn immutable time period representing a number of seconds.classWeeksAn immutable time period representing a number of weeks.classYearsAn immutable time period representing a number of years.Methods in org.joda.time with parameters of type ReadablePeriod Modifier and Type Method Description abstract longChronology. add(ReadablePeriod period, long instant, int scalar)Adds the period to the instant, specifying the number of times to add.voidMutableDateTime. add(ReadablePeriod period)Adds a period to this instant.voidMutableDateTime. add(ReadablePeriod period, int scalar)Adds a period to this instant specifying how many times to add.voidMutablePeriod. add(ReadablePeriod period)Adds a period to this one by adding each field in turn.voidReadWritableInstant. add(ReadablePeriod period)Adds a period to this instant.voidReadWritableInstant. add(ReadablePeriod period, int scalar)Adds a period to this instant specifying how many times to add.voidReadWritablePeriod. add(ReadablePeriod period)Adds a period to this one by adding each field in turn.(package private) booleanPeriodType. addIndexedField(ReadablePeriod period, int index, int[] values, int valueToAdd)Adds to the indexed field part of the period.abstract int[]Chronology. get(ReadablePeriod period, long duration)Gets the values of a period from an interval.abstract int[]Chronology. get(ReadablePeriod period, long startInstant, long endInstant)Gets the values of a period from an interval.(package private) intPeriodType. getIndexedField(ReadablePeriod period, int index)Gets the indexed field part of the period.voidMutablePeriod. mergePeriod(ReadablePeriod period)Merges all the fields from the specified period into this one.DateMidnightDateMidnight. minus(ReadablePeriod period)Deprecated.Returns a copy of this date with the specified period taken away.DateTimeDateTime. minus(ReadablePeriod period)Returns a copy of this datetime with the specified period taken away.LocalDateLocalDate. minus(ReadablePeriod period)Returns a copy of this date with the specified period taken away.LocalDateTimeLocalDateTime. minus(ReadablePeriod period)Returns a copy of this datetime with the specified period taken away.LocalTimeLocalTime. minus(ReadablePeriod period)Returns a copy of this time with the specified period taken away.MonthDayMonthDay. minus(ReadablePeriod period)Returns a copy of this month-day with the specified period taken away.PartialPartial. minus(ReadablePeriod period)Gets a copy of this instance with the specified period take away.PeriodPeriod. minus(ReadablePeriod period)Returns a new period with the specified period subtracted.TimeOfDayTimeOfDay. minus(ReadablePeriod period)Deprecated.Returns a copy of this time with the specified period taken away, wrapping to what would be a new day if required.YearMonthYearMonth. minus(ReadablePeriod period)Returns a copy of this year-month with the specified period taken away.YearMonthDayYearMonthDay. minus(ReadablePeriod period)Deprecated.Returns a copy of this date with the specified period taken away.DateMidnightDateMidnight. plus(ReadablePeriod period)Deprecated.Returns a copy of this date with the specified period added.DateTimeDateTime. plus(ReadablePeriod period)Returns a copy of this datetime with the specified period added.LocalDateLocalDate. plus(ReadablePeriod period)Returns a copy of this date with the specified period added.LocalDateTimeLocalDateTime. plus(ReadablePeriod period)Returns a copy of this datetime with the specified period added.LocalTimeLocalTime. plus(ReadablePeriod period)Returns a copy of this time with the specified period added.MonthDayMonthDay. plus(ReadablePeriod period)Returns a copy of this month-day with the specified period added.PartialPartial. plus(ReadablePeriod period)Gets a copy of this instance with the specified period added.PeriodPeriod. plus(ReadablePeriod period)Returns a new period with the specified period added.TimeOfDayTimeOfDay. plus(ReadablePeriod period)Deprecated.Returns a copy of this time with the specified period added, wrapping to what would be a new day if required.YearMonthYearMonth. plus(ReadablePeriod period)Returns a copy of this year-month with the specified period added.YearMonthDayYearMonthDay. plus(ReadablePeriod period)Deprecated.Returns a copy of this date with the specified period added.(package private) booleanPeriodType. setIndexedField(ReadablePeriod period, int index, int[] values, int newValue)Sets the indexed field part of the period.voidMutablePeriod. setPeriod(ReadablePeriod period)Sets all the fields in one go from another ReadablePeriod.voidReadWritablePeriod. setPeriod(ReadablePeriod period)Sets all the fields in one go from another ReadablePeriod.voidMutableInterval. setPeriodAfterStart(ReadablePeriod period)Sets the period of this time interval, preserving the start instant and using the ISOChronology in the default zone for calculations.voidReadWritableInterval. setPeriodAfterStart(ReadablePeriod period)Sets the period of this time interval, preserving the start instant.voidMutableInterval. setPeriodBeforeEnd(ReadablePeriod period)Sets the period of this time interval, preserving the end instant and using the ISOChronology in the default zone for calculations.voidReadWritableInterval. setPeriodBeforeEnd(ReadablePeriod period)Sets the period of this time interval, preserving the end instant.static DaysDays. standardDaysIn(ReadablePeriod period)Creates a newDaysrepresenting the number of complete standard length days in the specified period.static HoursHours. standardHoursIn(ReadablePeriod period)Creates a newHoursrepresenting the number of complete standard length hours in the specified period.static MinutesMinutes. standardMinutesIn(ReadablePeriod period)Creates a newMinutesrepresenting the number of complete standard length minutes in the specified period.static SecondsSeconds. standardSecondsIn(ReadablePeriod period)Creates a newSecondsrepresenting the number of complete standard length seconds in the specified period.static WeeksWeeks. standardWeeksIn(ReadablePeriod period)Creates a newWeeksrepresenting the number of complete standard length weeks in the specified period.PeriodPeriod. withFields(ReadablePeriod period)Creates a new Period instance with the fields from the specified period copied on top of those from this period.DateMidnightDateMidnight. withPeriodAdded(ReadablePeriod period, int scalar)Deprecated.Returns a copy of this date with the specified period added.DateTimeDateTime. withPeriodAdded(ReadablePeriod period, int scalar)Returns a copy of this datetime with the specified period added.LocalDateLocalDate. withPeriodAdded(ReadablePeriod period, int scalar)Returns a copy of this date with the specified period added.LocalDateTimeLocalDateTime. withPeriodAdded(ReadablePeriod period, int scalar)Returns a copy of this datetime with the specified period added.LocalTimeLocalTime. withPeriodAdded(ReadablePeriod period, int scalar)Returns a copy of this time with the specified period added.MonthDayMonthDay. withPeriodAdded(ReadablePeriod period, int scalar)Returns a copy of this month-day with the specified period added.PartialPartial. withPeriodAdded(ReadablePeriod period, int scalar)Gets a copy of this Partial with the specified period added.TimeOfDayTimeOfDay. withPeriodAdded(ReadablePeriod period, int scalar)Deprecated.Returns a copy of this time with the specified period added, wrapping to what would be a new day if required.YearMonthYearMonth. withPeriodAdded(ReadablePeriod period, int scalar)Returns a copy of this year-month with the specified period added.YearMonthDayYearMonthDay. withPeriodAdded(ReadablePeriod period, int scalar)Deprecated.Returns a copy of this date with the specified period added.IntervalInterval. withPeriodAfterStart(ReadablePeriod period)Creates a new interval with the specified period after the start instant.IntervalInterval. withPeriodBeforeEnd(ReadablePeriod period)Creates a new interval with the specified period before the end instant.Constructors in org.joda.time with parameters of type ReadablePeriod Constructor Description Interval(ReadableInstant start, ReadablePeriod period)Constructs an interval from a start instant and a time period.Interval(ReadablePeriod period, ReadableInstant end)Constructs an interval from a time period and an end instant.MutableInterval(ReadableInstant start, ReadablePeriod period)Constructs an interval from a start instant and a time period.MutableInterval(ReadablePeriod period, ReadableInstant end)Constructs an interval from a time period and an end instant. -
Uses of ReadablePeriod in org.joda.time.base
Classes in org.joda.time.base that implement ReadablePeriod Modifier and Type Class Description classAbstractPeriodAbstractPeriod provides the common behaviour for period classes.classBasePeriodBasePeriod is an abstract implementation of ReadablePeriod that stores data in aPeriodTypeand anint[].classBaseSingleFieldPeriodBaseSingleFieldPeriod is an abstract implementation of ReadablePeriod that manages a single duration field, such as days or minutes.Fields in org.joda.time.base declared as ReadablePeriod Modifier and Type Field Description private static ReadablePeriodBasePeriod. DUMMY_PERIODSerialization versionMethods in org.joda.time.base with parameters of type ReadablePeriod Modifier and Type Method Description protected voidBasePeriod. addPeriod(ReadablePeriod period)Adds the fields from another period.protected int[]BasePeriod. addPeriodInto(int[] values, ReadablePeriod period)Adds the fields from another period.protected static intBaseSingleFieldPeriod. between(ReadablePartial start, ReadablePartial end, ReadablePeriod zeroInstance)Calculates the number of whole units between the two specified partial datetimes.protected voidBasePeriod. mergePeriod(ReadablePeriod period)Merges the fields from another period.protected int[]BasePeriod. mergePeriodInto(int[] values, ReadablePeriod period)Merges the fields from another period.protected voidBasePeriod. setPeriod(ReadablePeriod period)Sets all the fields of this period from another.private voidBasePeriod. setPeriodInternal(ReadablePeriod period)Private method called from constructor.protected static intBaseSingleFieldPeriod. standardPeriodIn(ReadablePeriod period, long millisPerUnit)Creates a new instance representing the number of complete standard length units in the specified period.Constructors in org.joda.time.base with parameters of type ReadablePeriod Constructor Description BaseInterval(ReadableInstant start, ReadablePeriod period)Constructs an interval from a start instant and a time period.BaseInterval(ReadablePeriod period, ReadableInstant end)Constructs an interval from a time period and an end instant. -
Uses of ReadablePeriod in org.joda.time.chrono
Methods in org.joda.time.chrono with parameters of type ReadablePeriod Modifier and Type Method Description longBaseChronology. add(ReadablePeriod period, long instant, int scalar)Adds the period to the instant, specifying the number of times to add.int[]BaseChronology. get(ReadablePeriod period, long duration)Gets the values of a period from an interval.int[]BaseChronology. get(ReadablePeriod period, long startInstant, long endInstant)Gets the values of a period from an interval. -
Uses of ReadablePeriod in org.joda.time.format
Methods in org.joda.time.format with parameters of type ReadablePeriod Modifier and Type Method Description intPeriodFormat.DynamicWordBased. calculatePrintedLength(ReadablePeriod period, java.util.Locale locale)intPeriodFormatterBuilder.Composite. calculatePrintedLength(ReadablePeriod period, java.util.Locale locale)intPeriodFormatterBuilder.FieldFormatter. calculatePrintedLength(ReadablePeriod period, java.util.Locale locale)intPeriodFormatterBuilder.Literal. calculatePrintedLength(ReadablePeriod period, java.util.Locale locale)intPeriodFormatterBuilder.Separator. calculatePrintedLength(ReadablePeriod period, java.util.Locale locale)intPeriodPrinter. calculatePrintedLength(ReadablePeriod period, java.util.Locale locale)Returns the exact number of characters produced for the given period.private voidPeriodFormatter. checkPeriod(ReadablePeriod period)Checks whether the period is non-null.intPeriodFormat.DynamicWordBased. countFieldsToPrint(ReadablePeriod period, int stopAt, java.util.Locale locale)intPeriodFormatterBuilder.Composite. countFieldsToPrint(ReadablePeriod period, int stopAt, java.util.Locale locale)intPeriodFormatterBuilder.FieldFormatter. countFieldsToPrint(ReadablePeriod period, int stopAt, java.util.Locale locale)intPeriodFormatterBuilder.Literal. countFieldsToPrint(ReadablePeriod period, int stopAt, java.util.Locale locale)intPeriodFormatterBuilder.Separator. countFieldsToPrint(ReadablePeriod period, int stopAt, java.util.Locale locale)intPeriodPrinter. countFieldsToPrint(ReadablePeriod period, int stopAt, java.util.Locale locale)Returns the amount of fields from the given period that this printer will print.(package private) longPeriodFormatterBuilder.FieldFormatter. getFieldValue(ReadablePeriod period)(package private) booleanPeriodFormatterBuilder.FieldFormatter. isZero(ReadablePeriod period)java.lang.StringPeriodFormatter. print(ReadablePeriod period)Prints a ReadablePeriod to a new String.voidPeriodFormat.DynamicWordBased. printTo(java.io.Writer out, ReadablePeriod period, java.util.Locale locale)voidPeriodFormat.DynamicWordBased. printTo(java.lang.StringBuffer buf, ReadablePeriod period, java.util.Locale locale)voidPeriodFormatter. printTo(java.io.Writer out, ReadablePeriod period)Prints a ReadablePeriod to a Writer.voidPeriodFormatter. printTo(java.lang.StringBuffer buf, ReadablePeriod period)Prints a ReadablePeriod to a StringBuffer.voidPeriodFormatterBuilder.Composite. printTo(java.io.Writer out, ReadablePeriod period, java.util.Locale locale)voidPeriodFormatterBuilder.Composite. printTo(java.lang.StringBuffer buf, ReadablePeriod period, java.util.Locale locale)voidPeriodFormatterBuilder.FieldFormatter. printTo(java.io.Writer out, ReadablePeriod period, java.util.Locale locale)voidPeriodFormatterBuilder.FieldFormatter. printTo(java.lang.StringBuffer buf, ReadablePeriod period, java.util.Locale locale)voidPeriodFormatterBuilder.Literal. printTo(java.io.Writer out, ReadablePeriod period, java.util.Locale locale)voidPeriodFormatterBuilder.Literal. printTo(java.lang.StringBuffer buf, ReadablePeriod period, java.util.Locale locale)voidPeriodFormatterBuilder.Separator. printTo(java.io.Writer out, ReadablePeriod period, java.util.Locale locale)voidPeriodFormatterBuilder.Separator. printTo(java.lang.StringBuffer buf, ReadablePeriod period, java.util.Locale locale)voidPeriodPrinter. printTo(java.io.Writer out, ReadablePeriod period, java.util.Locale locale)Prints a ReadablePeriod to a Writer.voidPeriodPrinter. printTo(java.lang.StringBuffer buf, ReadablePeriod period, java.util.Locale locale)Prints a ReadablePeriod to a StringBuffer.
-