java.lang.Object | |
↳ | org.joda.time.PeriodType |
Controls a period implementation by specifying which duration fields are to be used.
The following implementations are provided:
PeriodType is thread-safe and immutable, and all subclasses must be as well.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets a type that defines all standard fields from days downwards.
| |||||||||||
Gets a type that defines just the days field.
| |||||||||||
Compares this type to another object.
| |||||||||||
Gets a period type that contains the duration types of the array.
| |||||||||||
Gets the field type by index.
| |||||||||||
Gets the name of the period type.
| |||||||||||
Returns a hashcode based on the field types.
| |||||||||||
Gets a type that defines just the hours field.
| |||||||||||
Gets the index of the field in this period.
| |||||||||||
Checks whether the field specified is supported by this period.
| |||||||||||
Gets a type that defines just the millis field.
| |||||||||||
Gets a type that defines just the minutes field.
| |||||||||||
Gets a type that defines just the months field.
| |||||||||||
Gets a type that defines just the seconds field.
| |||||||||||
Gets the number of fields in the period type.
| |||||||||||
Gets a type that defines all standard fields.
| |||||||||||
Gets a type that defines all standard time fields.
| |||||||||||
Gets a debugging to string.
| |||||||||||
Gets a type that defines just the weeks field.
| |||||||||||
Returns a version of this PeriodType instance that does not support days.
| |||||||||||
Returns a version of this PeriodType instance that does not support hours.
| |||||||||||
Returns a version of this PeriodType instance that does not support milliseconds.
| |||||||||||
Returns a version of this PeriodType instance that does not support minutes.
| |||||||||||
Returns a version of this PeriodType instance that does not support months.
| |||||||||||
Returns a version of this PeriodType instance that does not support seconds.
| |||||||||||
Returns a version of this PeriodType instance that does not support weeks.
| |||||||||||
Returns a version of this PeriodType instance that does not support years.
| |||||||||||
Gets a type that defines the year and day fields.
| |||||||||||
Gets a type that defines all standard fields except months and weeks.
| |||||||||||
Gets a type that defines the year, month and day fields.
| |||||||||||
Gets a type that defines all standard fields except weeks.
| |||||||||||
Gets a type that defines year, week and day fields.
| |||||||||||
Gets a type that defines all standard fields except months.
| |||||||||||
Gets a type that defines just the years field.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Constructor.
name | the name |
---|---|
types | the types |
indices | the indices |
Gets a type that defines all standard fields from days downwards.
Gets a type that defines just the days field.
Compares this type to another object. To be equal, the object must be a PeriodType with the same set of fields.
obj | the object to compare to |
---|
Gets a period type that contains the duration types of the array.
Only the 8 standard duration field types are supported.
types | the types to include in the array. |
---|
Gets the field type by index.
index | the index to retrieve |
---|
IndexOutOfBoundsException | if the index is invalid |
---|
Returns a hashcode based on the field types.
Gets a type that defines just the hours field.
Gets the index of the field in this period.
type | the type to check, may be null which returns -1 |
---|
Checks whether the field specified is supported by this period.
type | the type to check, may be null which returns false |
---|
Gets a type that defines just the millis field.
Gets a type that defines just the minutes field.
Gets a type that defines just the months field.
Gets a type that defines just the seconds field.
Gets the number of fields in the period type.
Gets a type that defines all standard fields.
Gets a type that defines all standard time fields.
Gets a type that defines just the weeks field.
Returns a version of this PeriodType instance that does not support days.
Returns a version of this PeriodType instance that does not support hours.
Returns a version of this PeriodType instance that does not support milliseconds.
Returns a version of this PeriodType instance that does not support minutes.
Returns a version of this PeriodType instance that does not support months.
Returns a version of this PeriodType instance that does not support seconds.
Returns a version of this PeriodType instance that does not support weeks.
Returns a version of this PeriodType instance that does not support years.
Gets a type that defines the year and day fields.
Gets a type that defines all standard fields except months and weeks.
Gets a type that defines the year, month and day fields.
Gets a type that defines all standard fields except weeks.
Gets a type that defines year, week and day fields.
Gets a type that defines all standard fields except months.
Gets a type that defines just the years field.