public int checkValidIntValue (long value, TemporalField field)

Checks that the specified value is valid and fits in an int.

This validates that the value is within the valid range of values and that all valid values are within the bounds of an int. The field is only used to improve the error message.

Parameters:
value    the value to check
field    the field being checked, may be null

Returns:  the value that was passed in

See also:
isValidIntValue(long)