java.lang.Object | |
↳ | org.joda.time.MockPartial |
A basic mock testing class for a PartialInstant that doesn't extend AbstractPartialInstant.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
EMPTY_INSTANCE |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the value of one of the fields.
| |||||||||||
Gets the chronology of the partial which is never null.
| |||||||||||
Gets the field at the specified index.
| |||||||||||
Gets the field type at the specified index.
| |||||||||||
Gets the value at the specified index.
| |||||||||||
Checks whether the field type specified is supported by this partial.
| |||||||||||
Gets the number of fields that this partial supports.
| |||||||||||
Converts this partial to a full datetime by resolving it against another
datetime.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.joda.time.ReadablePartial
|
Gets the value of one of the fields.
The field type specified must be one of those that is supported by the partial.
field | a DateTimeFieldType instance that is supported by this partial |
---|
Gets the chronology of the partial which is never null.
The Chronology
is the calculation engine behind the partial and
provides conversion and validation of the fields in a particular calendar system.
Gets the field at the specified index.
index | the index to retrieve |
---|
Gets the field type at the specified index.
index | the index to retrieve |
---|
Gets the value at the specified index.
index | the index to retrieve |
---|
Checks whether the field type specified is supported by this partial.
field | the field to check, may be null which returns false |
---|
Gets the number of fields that this partial supports.
Converts this partial to a full datetime by resolving it against another datetime.
This method takes the specified datetime and sets the fields from this instant on top. The chronology from the base instant is used.
For example, if this partial represents a time, then the result of this method will be the datetime from the specified base instant plus the time from this partial.
base | the instant that provides the missing fields, null means now |
---|