private DateTimeField convertField(DateTimeField field, HashMap<Object, Object> converted) { if (field == null || !field.isSupported()) { return field; } if (converted.containsKey(field)) { return (DateTimeField)converted.get(field); } LimitDateTimeField limitField = new LimitDateTimeField(field, convertField(field.getDurationField(), converted), convertField(field.getRangeDurationField(), converted), convertField(field.getLeapDurationField(), converted)); converted.put(field, limitField); return limitField; }
public long set(long instant, String text, Locale locale) { checkLimits(instant, null); long result = getWrappedField().set(instant, text, locale); checkLimits(result, "resulting"); return result; }
public long roundHalfCeiling(long instant) { checkLimits(instant, null); long result = getWrappedField().roundHalfCeiling(instant); checkLimits(result, "resulting"); return result; }
public long roundHalfFloor(long instant) { checkLimits(instant, null); long result = getWrappedField().roundHalfFloor(instant); checkLimits(result, "resulting"); return result; }
public long roundHalfCeiling(long instant) { checkLimits(instant, null); long result = getWrappedField().roundHalfCeiling(instant); checkLimits(result, "resulting"); return result; }
public long add(long instant, long amount) { checkLimits(instant, null); long result = getWrappedField().add(instant, amount); checkLimits(result, "resulting"); return result; }
public long roundHalfCeiling(long instant) { checkLimits(instant, null); long result = getWrappedField().roundHalfCeiling(instant); checkLimits(result, "resulting"); return result; }
public long roundCeiling(long instant) { checkLimits(instant, null); long result = getWrappedField().roundCeiling(instant); checkLimits(result, "resulting"); return result; }
public long set(long instant, int value) { checkLimits(instant, null); long result = getWrappedField().set(instant, value); checkLimits(result, "resulting"); return result; }
public long set(long instant, int value) { checkLimits(instant, null); long result = getWrappedField().set(instant, value); checkLimits(result, "resulting"); return result; }
public long roundHalfEven(long instant) { checkLimits(instant, null); long result = getWrappedField().roundHalfEven(instant); checkLimits(result, "resulting"); return result; }
public long getDifferenceAsLong(long minuendInstant, long subtrahendInstant) { checkLimits(minuendInstant, "minuend"); checkLimits(subtrahendInstant, "subtrahend"); return getWrappedField().getDifferenceAsLong(minuendInstant, subtrahendInstant); }
public int getMaximumShortTextLength(Locale locale) { return getWrappedField().getMaximumShortTextLength(locale); }
public int getMaximumTextLength(Locale locale) { return getWrappedField().getMaximumTextLength(locale); }
public int getMinimumValue(long instant) { checkLimits(instant, null); return getWrappedField().getMinimumValue(instant); }
public String getAsShortText(long instant, Locale locale) { checkLimits(instant, null); return getWrappedField().getAsShortText(instant, locale); }
public String getAsText(long instant, Locale locale) { checkLimits(instant, null); return getWrappedField().getAsText(instant, locale); }
public int getMaximumValue(long instant) { checkLimits(instant, null); return getWrappedField().getMaximumValue(instant); }
public int getLeapAmount(long instant) { checkLimits(instant, null); return getWrappedField().getLeapAmount(instant); }
public boolean isLeap(long instant) { checkLimits(instant, null); return getWrappedField().isLeap(instant); }