Java Code Examples for org.joda.time.DurationField#getType()

The following examples show how to use org.joda.time.DurationField#getType() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Time_26_ZonedChronology_t.java    From coming with MIT License 5 votes vote down vote up
ZonedDurationField(DurationField field, DateTimeZone zone) {
    super(field.getType());
    if (!field.isSupported()) {
        throw new IllegalArgumentException();
    }
    iField = field;
    iTimeField = useTimeArithmetic(field);
    iZone = zone;
}
 
Example 2
Source File: Time_26_ZonedChronology_s.java    From coming with MIT License 5 votes vote down vote up
ZonedDurationField(DurationField field, DateTimeZone zone) {
    super(field.getType());
    if (!field.isSupported()) {
        throw new IllegalArgumentException();
    }
    iField = field;
    iTimeField = useTimeArithmetic(field);
    iZone = zone;
}
 
Example 3
Source File: DelegatedDurationField.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructor.
 * 
 * @param field  the base field
 * @param type  the field type to use
 */
protected DelegatedDurationField(DurationField field, DurationFieldType type) {
    super();
    if (field == null) {
        throw new IllegalArgumentException("The field must not be null");
    }
    iField = field;
    iType = (type == null ? field.getType() : type);
}
 
Example 4
Source File: ZonedChronology.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
ZonedDurationField(DurationField field, DateTimeZone zone) {
    super(field.getType());
    if (!field.isSupported()) {
        throw new IllegalArgumentException();
    }
    iField = field;
    iTimeField = useTimeArithmetic(field);
    iZone = zone;
}
 
Example 5
Source File: DelegatedDurationField.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructor.
 * 
 * @param field  the base field
 * @param type  the field type to use
 */
protected DelegatedDurationField(DurationField field, DurationFieldType type) {
    super();
    if (field == null) {
        throw new IllegalArgumentException("The field must not be null");
    }
    iField = field;
    iType = (type == null ? field.getType() : type);
}
 
Example 6
Source File: ZonedChronology.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
ZonedDurationField(DurationField field, DateTimeZone zone) {
    super(field.getType());
    if (!field.isSupported()) {
        throw new IllegalArgumentException();
    }
    iField = field;
    iTimeField = useTimeArithmetic(field);
    iZone = zone;
}
 
Example 7
Source File: Time_18_GJChronology_t.java    From coming with MIT License 4 votes vote down vote up
LinkedDurationField(DurationField durationField, ImpreciseCutoverField dateTimeField) {
    super(durationField, durationField.getType());
    iField = dateTimeField;
}
 
Example 8
Source File: Time_18_GJChronology_s.java    From coming with MIT License 4 votes vote down vote up
LinkedDurationField(DurationField durationField, ImpreciseCutoverField dateTimeField) {
    super(durationField, durationField.getType());
    iField = dateTimeField;
}
 
Example 9
Source File: Time_6_GJChronology_s.java    From coming with MIT License 4 votes vote down vote up
LinkedDurationField(DurationField durationField, ImpreciseCutoverField dateTimeField) {
    super(durationField, durationField.getType());
    iField = dateTimeField;
}
 
Example 10
Source File: Time_6_GJChronology_t.java    From coming with MIT License 4 votes vote down vote up
LinkedDurationField(DurationField durationField, ImpreciseCutoverField dateTimeField) {
    super(durationField, durationField.getType());
    iField = dateTimeField;
}
 
Example 11
Source File: LimitChronology.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
LimitDurationField(DurationField field) {
    super(field, field.getType());
}
 
Example 12
Source File: GJChronology.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
LinkedDurationField(DurationField durationField, ImpreciseCutoverField dateTimeField) {
    super(durationField, durationField.getType());
    iField = dateTimeField;
}
 
Example 13
Source File: LimitChronology.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
LimitDurationField(DurationField field) {
    super(field, field.getType());
}
 
Example 14
Source File: GJChronology.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
LinkedDurationField(DurationField durationField, ImpreciseCutoverField dateTimeField) {
    super(durationField, durationField.getType());
    iField = dateTimeField;
}