java.lang.Object | |
↳ | org.joda.time.field.AbstractPartialFieldProperty |
Known Direct Subclasses |
AbstractPartialFieldProperty is a base class for binding a ReadablePartial to a DateTimeField.
It allows the date and time manipulation code to be field based yet still easy to use.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Compare this field to the same field on another instant.
| |||||||||||
Compare this field to the same field on another partial instant.
| |||||||||||
Compares this property to another.
| |||||||||||
Gets the value of this property from the instant.
| |||||||||||
Gets the short textual value of this property from the instant as a
string in the specified locale.
| |||||||||||
Gets the short textual value of this property from the instant as a
string in the default locale.
| |||||||||||
Gets the value of this property from the instant as a string.
| |||||||||||
Gets the textual value of this property from the instant as a
string in the specified locale.
| |||||||||||
Gets the textual value of this property from the instant as a
string in the default locale.
| |||||||||||
Returns the duration per unit value of this field.
| |||||||||||
Gets the field being used.
| |||||||||||
Gets the field type being used.
| |||||||||||
Gets the maximum short text length for the field.
| |||||||||||
Gets the maximum text length for the field.
| |||||||||||
Gets the maximum value for this field given the current field values.
| |||||||||||
Gets the maximum value for the field ignoring the current time.
| |||||||||||
Gets the minimum value for this field given the current field values.
| |||||||||||
Gets the minimum value for the field ignoring the current time.
| |||||||||||
Gets the name of the field.
| |||||||||||
Returns the range duration of this field.
| |||||||||||
Gets a suitable hashcode for the object.
| |||||||||||
Output a debugging string.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the partial instant being used.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Constructor.
Compare this field to the same field on another instant.
The comparison is based on the value of the same field type, irrespective of any difference in chronology. Thus, if this property represents the hourOfDay field, then the hourOfDay field of the other instant will be queried whether in the same chronology or not.
instant | the instant to compare to |
---|
IllegalArgumentException | if the instant is null or the instant doesn't support the field of this property |
---|
Compare this field to the same field on another partial instant.
The comparison is based on the value of the same field type, irrespective of any difference in chronology. Thus, if this property represents the hourOfDay field, then the hourOfDay field of the other partial will be queried whether in the same chronology or not.
partial | the partial to compare to |
---|
IllegalArgumentException | if the instant is null |
---|---|
IllegalArgumentException | if the field of this property cannot be queried on the specified instant |
Compares this property to another.
object | the object to compare to |
---|
Gets the value of this property from the instant.
For example, the following two lines of code are equivalent:
partial.getDayOfMonth(); partial.dayOfMonth().get();
Gets the short textual value of this property from the instant as a string in the specified locale.
This method returns the value converted to a String
returning the appropriate textual description wherever possible.
Thus, a day of week of 1 would return 'Mon' in English.
locale | locale to use for selecting a text symbol, null means default |
---|
Gets the short textual value of this property from the instant as a string in the default locale.
This method returns the value converted to a String
returning the appropriate textual description wherever possible.
Thus, a day of week of 1 would return 'Mon' in English.
Gets the value of this property from the instant as a string.
This method returns the value converted to a String
using Integer.toString
. This method does NOT return
textual descriptions such as 'Monday' or 'January'.
See getAsText()
and getAsShortText()
for those.
Gets the textual value of this property from the instant as a string in the specified locale.
This method returns the value converted to a String
returning the appropriate textual description wherever possible.
Thus, a day of week of 1 would return 'Monday' in English.
locale | locale to use for selecting a text symbol, null means default |
---|
Gets the textual value of this property from the instant as a string in the default locale.
This method returns the value converted to a String
returning the appropriate textual description wherever possible.
Thus, a day of week of 1 would return 'Monday' in English.
Returns the duration per unit value of this field. For example, if this field represents "hour of day", then the duration is an hour.
Gets the maximum short text length for the field.
locale | optional locale to use for selecting a text symbol |
---|
Gets the maximum text length for the field.
locale | optional locale to use for selecting a text symbol |
---|
Gets the maximum value for this field given the current field values.
Gets the maximum value for the field ignoring the current time.
Gets the minimum value for this field given the current field values.
Gets the minimum value for the field ignoring the current time.
Returns the range duration of this field. For example, if this field represents "hour of day", then the range duration is a day.
Gets a suitable hashcode for the object.
Gets the partial instant being used.