Java Code Examples for org.joda.time.ReadWritablePeriod#setMinutes()

The following examples show how to use org.joda.time.ReadWritablePeriod#setMinutes() . 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_27_PeriodFormatterBuilder_s.java    From coming with MIT License 5 votes vote down vote up
void setFieldValue(ReadWritablePeriod period, int field, int value) {
    switch (field) {
    default:
        break;
    case YEARS:
        period.setYears(value);
        break;
    case MONTHS:
        period.setMonths(value);
        break;
    case WEEKS:
        period.setWeeks(value);
        break;
    case DAYS:
        period.setDays(value);
        break;
    case HOURS:
        period.setHours(value);
        break;
    case MINUTES:
        period.setMinutes(value);
        break;
    case SECONDS:
        period.setSeconds(value);
        break;
    case MILLIS:
        period.setMillis(value);
        break;
    }
}
 
Example 2
Source File: Time_27_PeriodFormatterBuilder_t.java    From coming with MIT License 5 votes vote down vote up
void setFieldValue(ReadWritablePeriod period, int field, int value) {
    switch (field) {
    default:
        break;
    case YEARS:
        period.setYears(value);
        break;
    case MONTHS:
        period.setMonths(value);
        break;
    case WEEKS:
        period.setWeeks(value);
        break;
    case DAYS:
        period.setDays(value);
        break;
    case HOURS:
        period.setHours(value);
        break;
    case MINUTES:
        period.setMinutes(value);
        break;
    case SECONDS:
        period.setSeconds(value);
        break;
    case MILLIS:
        period.setMillis(value);
        break;
    }
}
 
Example 3
Source File: Time_13_PeriodFormatterBuilder_s.java    From coming with MIT License 5 votes vote down vote up
void setFieldValue(ReadWritablePeriod period, int field, int value) {
    switch (field) {
    default:
        break;
    case YEARS:
        period.setYears(value);
        break;
    case MONTHS:
        period.setMonths(value);
        break;
    case WEEKS:
        period.setWeeks(value);
        break;
    case DAYS:
        period.setDays(value);
        break;
    case HOURS:
        period.setHours(value);
        break;
    case MINUTES:
        period.setMinutes(value);
        break;
    case SECONDS:
        period.setSeconds(value);
        break;
    case MILLIS:
        period.setMillis(value);
        break;
    }
}
 
Example 4
Source File: Time_13_PeriodFormatterBuilder_t.java    From coming with MIT License 5 votes vote down vote up
void setFieldValue(ReadWritablePeriod period, int field, int value) {
    switch (field) {
    default:
        break;
    case YEARS:
        period.setYears(value);
        break;
    case MONTHS:
        period.setMonths(value);
        break;
    case WEEKS:
        period.setWeeks(value);
        break;
    case DAYS:
        period.setDays(value);
        break;
    case HOURS:
        period.setHours(value);
        break;
    case MINUTES:
        period.setMinutes(value);
        break;
    case SECONDS:
        period.setSeconds(value);
        break;
    case MILLIS:
        period.setMillis(value);
        break;
    }
}
 
Example 5
Source File: PeriodFormatterBuilder.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
void setFieldValue(ReadWritablePeriod period, int field, int value) {
    switch (field) {
    default:
        break;
    case YEARS:
        period.setYears(value);
        break;
    case MONTHS:
        period.setMonths(value);
        break;
    case WEEKS:
        period.setWeeks(value);
        break;
    case DAYS:
        period.setDays(value);
        break;
    case HOURS:
        period.setHours(value);
        break;
    case MINUTES:
        period.setMinutes(value);
        break;
    case SECONDS:
        period.setSeconds(value);
        break;
    case MILLIS:
        period.setMillis(value);
        break;
    }
}
 
Example 6
Source File: PeriodFormatterBuilder.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
void setFieldValue(ReadWritablePeriod period, int field, int value) {
    switch (field) {
    default:
        break;
    case YEARS:
        period.setYears(value);
        break;
    case MONTHS:
        period.setMonths(value);
        break;
    case WEEKS:
        period.setWeeks(value);
        break;
    case DAYS:
        period.setDays(value);
        break;
    case HOURS:
        period.setHours(value);
        break;
    case MINUTES:
        period.setMinutes(value);
        break;
    case SECONDS:
        period.setSeconds(value);
        break;
    case MILLIS:
        period.setMillis(value);
        break;
    }
}