Uses of Class
org.joda.time.DurationFieldType
Packages that use DurationFieldType
Package
Description
Provides support for dates, times, time zones, durations, intervals, and
partials.
Implementation package providing abstract and base time classes.
Implementation package providing abstract and standard field classes.
-
Uses of DurationFieldType in org.joda.time
Subclasses of DurationFieldType in org.joda.timeModifier and TypeClassDescriptionprivate static classFields in org.joda.time declared as DurationFieldTypeModifier and TypeFieldDescription(package private) static final DurationFieldTypeDurationFieldType.CENTURIES_TYPEThe centuries field type.(package private) static final DurationFieldTypeDurationFieldType.DAYS_TYPEThe days field type.(package private) static final DurationFieldTypeDurationFieldType.ERAS_TYPEThe eras field type.(package private) static final DurationFieldTypeDurationFieldType.HALFDAYS_TYPEThe halfdays field type.(package private) static final DurationFieldTypeDurationFieldType.HOURS_TYPEThe hours field type.private final DurationFieldTypeIllegalFieldValueException.iDurationFieldTypeprivate final DurationFieldTypeDateTimeFieldType.StandardDateTimeFieldType.iRangeTypeThe range duration of the field.private final DurationFieldType[]PeriodType.iTypesThe array of typesprivate final DurationFieldTypeDateTimeFieldType.StandardDateTimeFieldType.iUnitTypeThe unit duration of the field.(package private) static final DurationFieldTypeDurationFieldType.MILLIS_TYPEThe millis field type.(package private) static final DurationFieldTypeDurationFieldType.MINUTES_TYPEThe minutes field type.(package private) static final DurationFieldTypeDurationFieldType.MONTHS_TYPEThe months field type.(package private) static final DurationFieldTypeDurationFieldType.SECONDS_TYPEThe seconds field type.(package private) static final DurationFieldTypeDurationFieldType.WEEKS_TYPEThe weeks field type.(package private) static final DurationFieldTypeDurationFieldType.WEEKYEARS_TYPEThe weekyears field type.(package private) static final DurationFieldTypeDurationFieldType.YEARS_TYPEThe years field type.Fields in org.joda.time with type parameters of type DurationFieldTypeModifier and TypeFieldDescriptionprivate static final Set<DurationFieldType> LocalDate.DATE_DURATION_TYPESSet of known duration types.private static final Set<DurationFieldType> LocalTime.TIME_DURATION_TYPESSet of known duration types.Methods in org.joda.time that return DurationFieldTypeModifier and TypeMethodDescriptionstatic DurationFieldTypeDurationFieldType.centuries()Get the centuries field type.static DurationFieldTypeDurationFieldType.days()Get the days field type.static DurationFieldTypeDurationFieldType.eras()Get the eras field type.IllegalFieldValueException.getDurationFieldType()Returns the DurationFieldType whose value was invalid, or null if not applicable.abstract DurationFieldTypeDateTimeFieldType.getDurationType()Get the duration unit of the field.DateTimeFieldType.StandardDateTimeFieldType.getDurationType()Days.getFieldType()Gets the duration field type, which isdays.Hours.getFieldType()Gets the duration field type, which ishours.Minutes.getFieldType()Gets the duration field type, which isminutes.Months.getFieldType()Gets the duration field type, which ismonths.PeriodType.getFieldType(int index) Gets the field type by index.ReadablePeriod.getFieldType(int index) Gets the field type at the specified index.Seconds.getFieldType()Gets the duration field type, which isseconds.Weeks.getFieldType()Gets the duration field type, which isweeks.Years.getFieldType()Gets the duration field type, which isyears.abstract DurationFieldTypeDateTimeFieldType.getRangeDurationType()Get the duration range of the field.DateTimeFieldType.StandardDateTimeFieldType.getRangeDurationType()abstract DurationFieldTypeDurationField.getType()Get the type of the field.static DurationFieldTypeDurationFieldType.halfdays()Get the halfdays field type.static DurationFieldTypeDurationFieldType.hours()Get the hours field type.static DurationFieldTypeDurationFieldType.millis()Get the millis field type.static DurationFieldTypeDurationFieldType.minutes()Get the minutes field type.static DurationFieldTypeDurationFieldType.months()Get the months field type.static DurationFieldTypeDurationFieldType.seconds()Get the seconds field type.static DurationFieldTypeDurationFieldType.weeks()Get the weeks field type.static DurationFieldTypeDurationFieldType.weekyears()Get the weekyears field type.static DurationFieldTypeDurationFieldType.years()Get the years field type.Methods in org.joda.time with parameters of type DurationFieldTypeModifier and TypeMethodDescriptionvoidMutableDateTime.add(DurationFieldType type, int amount) Adds to the instant specifying the duration and multiple to add.voidMutablePeriod.add(DurationFieldType field, int value) Adds to the value of one of the fields.voidReadWritableInstant.add(DurationFieldType type, int amount) Adds to the instant specifying the duration and multiple to add.voidReadWritablePeriod.add(DurationFieldType field, int value) Adds to the value of one of the fields.static PeriodTypePeriodType.forFields(DurationFieldType[] types) Gets a period type that contains the duration types of the array.intReadablePeriod.get(DurationFieldType field) Gets the value of one of the fields.intPeriodType.indexOf(DurationFieldType type) Gets the index of the field in this period.booleanLocalDate.isSupported(DurationFieldType type) Checks if the duration type specified is supported by this local date and chronology.booleanLocalDateTime.isSupported(DurationFieldType type) Checks if the duration type specified is supported by this local datetime and chronology.booleanLocalTime.isSupported(DurationFieldType type) Checks if the duration type specified is supported by this local time and chronology.booleanPeriodType.isSupported(DurationFieldType type) Checks whether the field specified is supported by this period.booleanReadablePeriod.isSupported(DurationFieldType field) Checks whether the field type specified is supported by this period.voidMutablePeriod.set(DurationFieldType field, int value) Sets the value of one of the fields.voidReadWritablePeriod.set(DurationFieldType field, int value) Sets the value of one of the fields.Period.withField(DurationFieldType field, int value) Creates a new Period instance with the specified field set to a new value.DateMidnight.withFieldAdded(DurationFieldType fieldType, int amount) Deprecated.Returns a copy of this date with the value of the specified field increased.DateTime.withFieldAdded(DurationFieldType fieldType, int amount) Returns a copy of this datetime with the value of the specified field increased.LocalDate.withFieldAdded(DurationFieldType fieldType, int amount) Returns a copy of this date with the value of the specified field increased.LocalDateTime.withFieldAdded(DurationFieldType fieldType, int amount) Returns a copy of this datetime with the value of the specified field increased.LocalTime.withFieldAdded(DurationFieldType fieldType, int amount) Returns a copy of this time with the value of the specified field increased.MonthDay.withFieldAdded(DurationFieldType fieldType, int amount) Returns a copy of this month-day with the value of the specified field increased.Partial.withFieldAdded(DurationFieldType fieldType, int amount) Gets a copy of this Partial with the value of the specified field increased.Period.withFieldAdded(DurationFieldType field, int value) Creates a new Period instance with the valueToAdd added to the specified field.TimeOfDay.withFieldAdded(DurationFieldType fieldType, int amount) Deprecated.Returns a copy of this time with the value of the specified field increased, wrapping to what would be a new day if required.YearMonth.withFieldAdded(DurationFieldType fieldType, int amount) Returns a copy of this year-month with the value of the specified field increased.YearMonthDay.withFieldAdded(DurationFieldType fieldType, int amount) Deprecated.Returns a copy of this date with the value of the specified field increased.Partial.withFieldAddWrapped(DurationFieldType fieldType, int amount) Gets a copy of this Partial with the value of the specified field increased.Constructors in org.joda.time with parameters of type DurationFieldTypeModifierConstructorDescriptionIllegalFieldValueException(DurationFieldType fieldType, Number value, Number lowerBound, Number upperBound) Constructor.IllegalFieldValueException(DurationFieldType fieldType, String value) Constructor.protectedPeriodType(String name, DurationFieldType[] types, int[] indices) Constructor.(package private)StandardDateTimeFieldType(String name, byte ordinal, DurationFieldType unitType, DurationFieldType rangeType) Constructor. -
Uses of DurationFieldType in org.joda.time.base
Methods in org.joda.time.base that return DurationFieldTypeModifier and TypeMethodDescriptionAbstractPeriod.getFieldType(int index) Gets the field type at the specified index.abstract DurationFieldTypeBaseSingleFieldPeriod.getFieldType()Gets the single duration field type.BaseSingleFieldPeriod.getFieldType(int index) Gets the field type at the specified index.AbstractPeriod.getFieldTypes()Gets an array of the field types that this period supports.Methods in org.joda.time.base with parameters of type DurationFieldTypeModifier and TypeMethodDescriptionprotected voidBasePeriod.addField(DurationFieldType field, int value) Adds the value of a field in this period.protected voidBasePeriod.addFieldInto(int[] values, DurationFieldType field, int value) Adds the value of a field in this period.protected static intBaseSingleFieldPeriod.between(ReadableInstant start, ReadableInstant end, DurationFieldType field) Calculates the number of whole units between the two specified datetimes.private voidBasePeriod.checkAndUpdate(DurationFieldType type, int[] values, int newValue) Checks whether a field type is supported, and if so adds the new value to the relevant index in the specified array.intAbstractPeriod.get(DurationFieldType type) Gets the value of one of the fields.intBaseSingleFieldPeriod.get(DurationFieldType type) Gets the value of a duration field represented by this period.protected intAbstractPartial.indexOf(DurationFieldType type) Gets the index of the first fields to have the specified duration, or -1 if the field is unsupported.intAbstractPeriod.indexOf(DurationFieldType type) Gets the index of the field in this period.protected intAbstractPartial.indexOfSupported(DurationFieldType type) Gets the index of the first fields to have the specified duration, throwing an exception if the field is unsupported.booleanAbstractPeriod.isSupported(DurationFieldType type) Checks whether the field specified is supported by this period.booleanBaseSingleFieldPeriod.isSupported(DurationFieldType type) Checks whether the duration field specified is supported by this period.protected voidBasePeriod.setField(DurationFieldType field, int value) Sets the value of a field in this period.protected voidBasePeriod.setFieldInto(int[] values, DurationFieldType field, int value) Sets the value of a field in this period. -
Uses of DurationFieldType in org.joda.time.field
Fields in org.joda.time.field declared as DurationFieldTypeModifier and TypeFieldDescriptionprivate final DurationFieldTypeBaseDurationField.iTypeA descriptive name for the field.private final DurationFieldTypeDelegatedDurationField.iTypeThe field typeprivate final DurationFieldTypeUnsupportedDurationField.iTypeThe name of the fieldFields in org.joda.time.field with type parameters of type DurationFieldTypeModifier and TypeFieldDescriptionprivate static HashMap<DurationFieldType, UnsupportedDurationField> UnsupportedDurationField.cCacheThe cache of unsupported duration field instancesMethods in org.joda.time.field that return DurationFieldTypeModifier and TypeMethodDescriptionfinal DurationFieldTypeBaseDurationField.getType()DelegatedDurationField.getType()MillisDurationField.getType()final DurationFieldTypeUnsupportedDurationField.getType()Methods in org.joda.time.field with parameters of type DurationFieldTypeModifier and TypeMethodDescriptionstatic UnsupportedDurationFieldUnsupportedDurationField.getInstance(DurationFieldType type) Gets an instance of UnsupportedDurationField for a specific named field.Constructors in org.joda.time.field with parameters of type DurationFieldTypeModifierConstructorDescriptionprotectedDecoratedDurationField(DurationField field, DurationFieldType type) Constructor.protectedDelegatedDurationField(DurationField field, DurationFieldType type) Constructor.(package private)PreciseDurationField(DurationFieldType type, long unitMillis) Constructor.ScaledDurationField(DurationField field, DurationFieldType type, int scalar) ConstructorprivateConstructor.