Java 类org.joda.time.field.UnsupportedDateTimeField 实例源码

项目:astor    文件:TestSerialization.java   
public void testSerializedUnsupportedDateTimeField() throws Exception {
    UnsupportedDateTimeField test = UnsupportedDateTimeField.getInstance(
            DateTimeFieldType.year(),
            UnsupportedDurationField.getInstance(DurationFieldType.years()));
    loadAndCompare(test, "UnsupportedDateTimeField", true);
    inlineCompare(test, true);
}
项目:astor    文件:TestSerialization.java   
public void testSerializedUnsupportedDateTimeField() throws Exception {
    UnsupportedDateTimeField test = UnsupportedDateTimeField.getInstance(
            DateTimeFieldType.year(),
            UnsupportedDurationField.getInstance(DurationFieldType.years()));
    loadAndCompare(test, "UnsupportedDateTimeField", true);
    inlineCompare(test, true);
}
项目:versemem-android    文件:TestSerialization.java   
public void testSerializedUnsupportedDateTimeField() throws Exception {
    UnsupportedDateTimeField test = UnsupportedDateTimeField.getInstance(
            DateTimeFieldType.year(),
            UnsupportedDurationField.getInstance(DurationFieldType.years()));
    loadAndCompare(test, "UnsupportedDateTimeField", true);
    inlineCompare(test, true);
}
项目:TinyTravelTracker    文件:BaseChronology.java   
/**
 * Get the millis of second field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField millisOfSecond() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.millisOfSecond(), millis());
}
项目:TinyTravelTracker    文件:BaseChronology.java   
/**
 * Get the millis of day field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField millisOfDay() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.millisOfDay(), millis());
}
项目:TinyTravelTracker    文件:BaseChronology.java   
/**
 * Get the second of minute field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField secondOfMinute() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.secondOfMinute(), seconds());
}
项目:TinyTravelTracker    文件:BaseChronology.java   
/**
 * Get the second of day field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField secondOfDay() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.secondOfDay(), seconds());
}
项目:TinyTravelTracker    文件:BaseChronology.java   
/**
 * Get the minute of hour field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField minuteOfHour() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.minuteOfHour(), minutes());
}
项目:TinyTravelTracker    文件:BaseChronology.java   
/**
 * Get the minute of day field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField minuteOfDay() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.minuteOfDay(), minutes());
}
项目:TinyTravelTracker    文件:BaseChronology.java   
/**
 * Get the hour of day (0-23) field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField hourOfDay() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.hourOfDay(), hours());
}
项目:TinyTravelTracker    文件:BaseChronology.java   
/**
 * Get the hour of day (offset to 1-24) field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField clockhourOfDay() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.clockhourOfDay(), hours());
}
项目:TinyTravelTracker    文件:BaseChronology.java   
/**
 * Get the hour of am/pm (0-11) field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField hourOfHalfday() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.hourOfHalfday(), hours());
}
项目:TinyTravelTracker    文件:BaseChronology.java   
/**
 * Get the hour of am/pm (offset to 1-12) field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField clockhourOfHalfday() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.clockhourOfHalfday(), hours());
}
项目:TinyTravelTracker    文件:BaseChronology.java   
/**
 * Get the AM(0) PM(1) field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField halfdayOfDay() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.halfdayOfDay(), halfdays());
}
项目:TinyTravelTracker    文件:BaseChronology.java   
/**
 * Get the day of week field for this chronology.
 *
 * <p>DayOfWeek values are defined in
 * {@link org.joda.time.DateTimeConstants DateTimeConstants}.
 * They use the ISO definitions, where 1 is Monday and 7 is Sunday.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField dayOfWeek() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.dayOfWeek(), days());
}
项目:TinyTravelTracker    文件:BaseChronology.java   
/**
 * Get the day of month field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField dayOfMonth() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.dayOfMonth(), days());
}
项目:TinyTravelTracker    文件:BaseChronology.java   
/**
 * Get the day of year field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField dayOfYear() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.dayOfYear(), days());
}
项目:TinyTravelTracker    文件:BaseChronology.java   
/**
 * Get the week of a week based year field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField weekOfWeekyear() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.weekOfWeekyear(), weeks());
}
项目:TinyTravelTracker    文件:BaseChronology.java   
/**
 * Get the year of a week based year field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField weekyear() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.weekyear(), weekyears());
}
项目:TinyTravelTracker    文件:BaseChronology.java   
/**
 * Get the year of a week based year in a century field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField weekyearOfCentury() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.weekyearOfCentury(), weekyears());
}
项目:TinyTravelTracker    文件:BaseChronology.java   
/**
 * Get the month of year field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField monthOfYear() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.monthOfYear(), months());
}
项目:TinyTravelTracker    文件:BaseChronology.java   
/**
 * Get the year field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField year() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.year(), years());
}
项目:TinyTravelTracker    文件:BaseChronology.java   
/**
 * Get the year of era field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField yearOfEra() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.yearOfEra(), years());
}
项目:TinyTravelTracker    文件:BaseChronology.java   
/**
 * Get the year of century field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField yearOfCentury() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.yearOfCentury(), years());
}
项目:TinyTravelTracker    文件:BaseChronology.java   
/**
 * Get the century of era field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField centuryOfEra() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.centuryOfEra(), centuries());
}
项目:TinyTravelTracker    文件:BaseChronology.java   
/**
 * Get the era field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField era() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.era(), eras());
}
项目:astor    文件:BaseChronology.java   
/**
 * Get the millis of second field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField millisOfSecond() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.millisOfSecond(), millis());
}
项目:astor    文件:BaseChronology.java   
/**
 * Get the millis of day field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField millisOfDay() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.millisOfDay(), millis());
}
项目:astor    文件:BaseChronology.java   
/**
 * Get the second of minute field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField secondOfMinute() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.secondOfMinute(), seconds());
}
项目:astor    文件:BaseChronology.java   
/**
 * Get the second of day field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField secondOfDay() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.secondOfDay(), seconds());
}
项目:astor    文件:BaseChronology.java   
/**
 * Get the minute of hour field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField minuteOfHour() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.minuteOfHour(), minutes());
}
项目:astor    文件:BaseChronology.java   
/**
 * Get the minute of day field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField minuteOfDay() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.minuteOfDay(), minutes());
}
项目:astor    文件:BaseChronology.java   
/**
 * Get the hour of day (0-23) field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField hourOfDay() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.hourOfDay(), hours());
}
项目:astor    文件:BaseChronology.java   
/**
 * Get the hour of day (offset to 1-24) field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField clockhourOfDay() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.clockhourOfDay(), hours());
}
项目:astor    文件:BaseChronology.java   
/**
 * Get the hour of am/pm (0-11) field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField hourOfHalfday() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.hourOfHalfday(), hours());
}
项目:astor    文件:BaseChronology.java   
/**
 * Get the hour of am/pm (offset to 1-12) field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField clockhourOfHalfday() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.clockhourOfHalfday(), hours());
}
项目:astor    文件:BaseChronology.java   
/**
 * Get the AM(0) PM(1) field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField halfdayOfDay() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.halfdayOfDay(), halfdays());
}
项目:astor    文件:BaseChronology.java   
/**
 * Get the day of week field for this chronology.
 *
 * <p>DayOfWeek values are defined in
 * {@link org.joda.time.DateTimeConstants DateTimeConstants}.
 * They use the ISO definitions, where 1 is Monday and 7 is Sunday.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField dayOfWeek() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.dayOfWeek(), days());
}
项目:astor    文件:BaseChronology.java   
/**
 * Get the day of month field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField dayOfMonth() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.dayOfMonth(), days());
}
项目:astor    文件:BaseChronology.java   
/**
 * Get the day of year field for this chronology.
 * 
 * @return DateTimeField or UnsupportedDateTimeField if unsupported
 */
public DateTimeField dayOfYear() {
    return UnsupportedDateTimeField.getInstance(DateTimeFieldType.dayOfYear(), days());
}