|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface representing an instant in the datetime continuum as a property. Typically the subinterfaces DateProperty, TimeProperty and DateTimeProperty are used instead.
Nested Class Summary |
Nested classes inherited from class org.joda.property.Property |
Property.Internal |
Field Summary | |
static java.lang.Class |
DEFAULT_TYPE
|
Method Summary | |
org.joda.time.DateTime |
get()
Get the property's value as an immutable DateTime. |
java.util.Calendar |
toCalendar(java.util.Locale locale)
Get the property's value as a Calendar, which is not necessarily a GregorianCalendar. |
java.util.Date |
toDate()
Get the property's value as a Date. |
java.util.GregorianCalendar |
toGregorianCalendar()
Get the property's value as a GregorianCalendar. |
Methods inherited from interface org.joda.property.type.DataProperty |
toDataString |
Methods inherited from interface org.joda.property.Property |
addPropertyChangeListener, bean, equals, equalsValue, firePropertyChange, getContentName, getContentType, getPropertyName, getPropertyType, hashCode, isModifiable, isNull, isReadOnly, removePropertyChangeListener, set, setModifiable, setReadOnly, toObject, toString |
Methods inherited from interface org.joda.property.ModelElement |
getAttribute, getAttributeCount, getAttributeMap, setAttribute |
Methods inherited from interface org.joda.time.ReadWritableInstant |
add, add, addMillis, addWrapped, set, setMillis, setMillis |
Methods inherited from interface org.joda.time.ReadableInstant |
compareTo, equals, get, getChronology, getDateTimeZone, getMillis, hashCode, isAfter, isBefore, isEqual, toCopy, toCopy, toInstant, toString |
Field Detail |
public static final java.lang.Class DEFAULT_TYPE
Method Detail |
public org.joda.time.DateTime get()
public java.util.Calendar toCalendar(java.util.Locale locale)
Changing the returned value will not affect the property.
public java.util.GregorianCalendar toGregorianCalendar()
Changing the returned value will not affect the property.
public java.util.Date toDate()
Changing the returned value will not affect the property.
|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |