public int getMaximumValue(long instant) { if (instant >= iCutover) { return iGregorianField.getMaximumValue(instant); } else { return iJulianField.getMaximumValue(instant); } } }
public int getMaximumValue() { // For all precise fields, the Julian and Gregorian limits are // identical. return iGregorianField.getMaximumValue(); }
public int getMaximumValue(long instant) { if (instant >= iCutover) { return iGregorianField.getMaximumValue(instant); } else { return iJulianField.getMaximumValue(instant); } } }
/** * Gets the maximum value for the field ignoring the current time. * * @return the maximum value * @see DateTimeField#getMaximumValue */ public int getMaximumValueOverall() { return getField().getMaximumValue(); }
/** * Get the maximum value for the field, which is one more than the wrapped * field's maximum value. * * @return the maximum value */ public int getMaximumValue(ReadablePartial instant) { return getWrappedField().getMaximumValue(instant) + 1; }
/** * Get the maximum value for the field, which is one more than the wrapped * field's maximum value. * * @return the maximum value */ public int getMaximumValue() { return getWrappedField().getMaximumValue() + 1; }
/** * Get the maximum value for the field, which is one more than the wrapped * field's maximum value. * * @return the maximum value */ public int getMaximumValue(long instant) { return getWrappedField().getMaximumValue(instant) + 1; }
/** * Get the maximum value for the field, which is one more than the wrapped * field's maximum value. * * @return the maximum value */ public int getMaximumValue(ReadablePartial instant, int[] values) { return getWrappedField().getMaximumValue(instant, values) + 1; }
/** * Gets the maximum value for the field ignoring the current time. * * @return the maximum value * @see DateTimeField#getMaximumValue */ public int getMaximumValueOverall() { return getField().getMaximumValue(); }
/** * Gets the maximum value for the field ignoring the current time. * * @return the maximum value * @see DateTimeField#getMaximumValue */ public int getMaximumValueOverall() { return getField().getMaximumValue(); }
/** * Get the maximum value for the field, which is one more than the wrapped * field's maximum value. * * @return the maximum value */ public int getMaximumValue(long instant) { return getWrappedField().getMaximumValue(instant) + 1; }
/** * Gets the maximum value for the field ignoring the current time. * * @return the maximum value * @see DateTimeField#getMaximumValue */ public int getMaximumValueOverall() { return getField().getMaximumValue(); }
public int getMaximumValue(long instant) { long localInstant = iZone.convertUTCToLocal(instant); return iField.getMaximumValue(localInstant); }
/** * Get the maximum value for the field, which is one more than the wrapped * field's maximum value. * * @return the maximum value */ public int getMaximumValue(ReadablePartial instant) { return getWrappedField().getMaximumValue(instant) + 1; }
public int getMaximumValue(long instant) { if (instant >= iCutover) { return iGregorianField.getMaximumValue(instant); } int max = iJulianField.getMaximumValue(instant); // Because the cutover may reduce the length of this field, verify // the maximum by setting it. instant = iJulianField.set(instant, max); if (instant >= iCutover) { max = iJulianField.get(iJulianField.add(iCutover, -1)); } return max; }
/** * Gets the maximum value for this field given the current field values. * * @return the maximum value * @see DateTimeField#getMaximumValue */ public int getMaximumValue() { return getField().getMaximumValue(getReadablePartial()); }
/** * Gets the maximum value for the field. * * @return the maximum value * @see DateTimeField#getMaximumValue */ public int getMaximumValue() { return getField().getMaximumValue(getMillis()); }
public int getMaximumValue(long instant) { checkLimits(instant, null); return getWrappedField().getMaximumValue(instant); }
/** * Gets the maximum value for this field given the current field values. * * @return the maximum value * @see DateTimeField#getMaximumValue */ public int getMaximumValue() { return getField().getMaximumValue(getReadablePartial()); }
public int getMaximumValue(ReadablePartial partial, int[] values) { Chronology chrono = GJChronology.getInstanceUTC(); long instant = 0L; for (int i = 0, isize = partial.size(); i < isize; i++) { DateTimeField field = partial.getFieldType(i).getField(chrono); if (values[i] <= field.getMaximumValue(instant)) { instant = field.set(instant, values[i]); } } return getMaximumValue(instant); }