org.joda.time.field
Class DecoratedDurationField
- Comparable, Serializable
public class DecoratedDurationField
DecoratedDurationField
extends
BaseDurationField
,
implementing only the minimum required set of methods. These implemented
methods delegate to a wrapped field.
This design allows new DurationField types to be defined that piggyback on
top of another, inheriting all the safe method implementations from
BaseDurationField. Should any method require pure delegation to the
wrapped field, simply override and use the provided getWrappedField method.
DecoratedDurationField is thread-safe and immutable, and its subclasses must
be as well.
compareTo , getDifference , getMillis , getMillis , getName , getType , getValue , getValue , getValueAsLong , isSupported , toString |
add , add , compareTo , getDifference , getDifferenceAsLong , getMillis , getMillis , getMillis , getMillis , getName , getType , getUnitMillis , getValue , getValue , getValueAsLong , getValueAsLong , isPrecise , isSupported , subtract , subtract , toString |
DecoratedDurationField
public DecoratedDurationField(DurationField field,
DurationFieldType type)
Constructor.
field
- the base fieldtype
- the type to actually use
getWrappedField
public final DurationField getWrappedField()
Gets the wrapped duration field.
- the wrapped DurationField
Copyright (c) 2001-2006 - Joda.org