java.lang.Object | ||
↳ | org.joda.time.field.AbstractPartialFieldProperty | |
↳ | org.joda.time.Partial.Property |
The property class for Partial
.
This class binds a Partial
to a DateTimeField
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds to the value of this field in a copy of this Partial.
| |||||||||||
Adds to the value of this field in a copy of this Partial wrapping
within this field if the maximum value is reached.
| |||||||||||
Gets the value of this field.
| |||||||||||
Gets the field that this property uses.
| |||||||||||
Gets the partial that this property belongs to.
| |||||||||||
Sets this field in a copy of the Partial to a parsed text value.
| |||||||||||
Sets this field in a copy of the Partial.
| |||||||||||
Sets this field in a copy of the Partial to a parsed text value.
| |||||||||||
Returns a new Partial with this field set to the maximum value
for this field.
| |||||||||||
Returns a new Partial with this field set to the minimum value
for this field.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the partial that this property belongs to.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.joda.time.field.AbstractPartialFieldProperty
| |||||||||||
From class
java.lang.Object
|
Adds to the value of this field in a copy of this Partial.
The value will be added to this field. If the value is too large to be added solely to this field then it will affect larger fields. Smaller fields are unaffected.
If the result would be too large, beyond the maximum year, then an IllegalArgumentException is thrown.
The Partial attached to this property is unchanged by this call. Instead, a new instance is returned.
valueToAdd | the value to add to the field in the copy |
---|
IllegalArgumentException | if the value isn't valid |
---|
Adds to the value of this field in a copy of this Partial wrapping within this field if the maximum value is reached.
The value will be added to this field. If the value is too large to be added solely to this field then it wraps within this field. Other fields are unaffected.
For example,
2004-12-20
addWrapField one month returns 2004-01-20
.
The Partial attached to this property is unchanged by this call. Instead, a new instance is returned.
valueToAdd | the value to add to the field in the copy |
---|
IllegalArgumentException | if the value isn't valid |
---|
Gets the value of this field.
Sets this field in a copy of the Partial to a parsed text value.
The Partial attached to this property is unchanged by this call. Instead, a new instance is returned.
text | the text value to set |
---|---|
locale | optional locale to use for selecting a text symbol |
IllegalArgumentException | if the text value isn't valid |
---|
Sets this field in a copy of the Partial.
The Partial attached to this property is unchanged by this call. Instead, a new instance is returned.
value | the value to set the field in the copy to |
---|
IllegalArgumentException | if the value isn't valid |
---|
Sets this field in a copy of the Partial to a parsed text value.
The Partial attached to this property is unchanged by this call. Instead, a new instance is returned.
text | the text value to set |
---|
IllegalArgumentException | if the text value isn't valid |
---|
Returns a new Partial with this field set to the maximum value for this field.
The Partial attached to this property is unchanged by this call.
Returns a new Partial with this field set to the minimum value for this field.
The Partial attached to this property is unchanged by this call.
Gets the partial that this property belongs to.