Package | Description |
---|---|
org.joda.time.convert |
Implementation package providing conversion between date and time objects.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DurationConverter
DurationConverter defines how an object is converted to a millisecond duration.
|
interface |
InstantConverter
InstantConverter defines how an object is converted to milliseconds/chronology.
|
interface |
IntervalConverter
IntervalConverter defines how an object is converted to an interval.
|
interface |
PartialConverter
PartialConverter defines how an object is converted to a ReadablePartial.
|
interface |
PeriodConverter
PeriodConverter defines how an object is converted to a time period.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractConverter
AbstractConverter simplifies the process of implementing a converter.
|
(package private) class |
CalendarConverter
CalendarConverter converts a java util Calendar to an instant or partial.
|
(package private) class |
DateConverter
DateConverter converts a java util Date to an instant or partial.
|
(package private) class |
LongConverter
LongConverter converts a Long to an instant, partial or duration.
|
(package private) class |
NullConverter
NullConverter converts null to an instant, partial, duration, period
or interval.
|
(package private) class |
ReadableDurationConverter
ReadableDurationConverter extracts milliseconds and chronology from a ReadableDuration.
|
(package private) class |
ReadableInstantConverter
ReadableInstantConverter extracts milliseconds and chronology from a ReadableInstant.
|
(package private) class |
ReadableIntervalConverter
Converts intervals into durations of any requested period type.
|
(package private) class |
ReadablePartialConverter
ReadablePartialConverter extracts partial fields and chronology from a ReadablePartial.
|
(package private) class |
ReadablePeriodConverter
ReadablePeriodConverter extracts milliseconds and chronology from a ReadablePeriod.
|
(package private) class |
StringConverter
StringConverter converts from a String to an instant, partial,
duration, period or interval..
|
Modifier and Type | Field and Description |
---|---|
(package private) Converter |
ConverterSet.Entry.iConverter |
private Converter[] |
ConverterSet.iConverters |
Modifier and Type | Method and Description |
---|---|
(package private) Converter |
ConverterSet.select(java.lang.Class<?> type)
Returns the closest matching converter for the given type, or null if
none found.
|
private static Converter |
ConverterSet.selectSlow(ConverterSet set,
java.lang.Class<?> type)
Returns the closest matching converter for the given type, but not very
efficiently.
|
Modifier and Type | Method and Description |
---|---|
(package private) ConverterSet |
ConverterSet.add(Converter converter,
Converter[] removed)
Returns a copy of this set, with the given converter added.
|
(package private) ConverterSet |
ConverterSet.add(Converter converter,
Converter[] removed)
Returns a copy of this set, with the given converter added.
|
(package private) void |
ConverterSet.copyInto(Converter[] converters)
Copies all the converters in the set to the given array.
|
(package private) ConverterSet |
ConverterSet.remove(Converter converter,
Converter[] removed)
Returns a copy of this set, with the given converter removed.
|
(package private) ConverterSet |
ConverterSet.remove(Converter converter,
Converter[] removed)
Returns a copy of this set, with the given converter removed.
|
(package private) ConverterSet |
ConverterSet.remove(int index,
Converter[] removed)
Returns a copy of this set, with the converter at the given index
removed.
|
Constructor and Description |
---|
ConverterSet(Converter[] converters) |
Entry(java.lang.Class<?> type,
Converter converter) |