/** Sets values based on a field. */ public long set(int field, long value) { switch (field) { case YEAR: setYear((int) value); break; case MONTH: setMonth((int) value); break; case DAY_OF_MONTH: setDayOfMonth((int) value); break; case HOUR: setHour((int) value); break; case MINUTE: setMinute((int) value); break; case SECOND: setSecond((int) value); break; case MILLISECOND: setMillisecond(value); break; default: throw new RuntimeException(); } return _localTimeOfEpoch; }