/// <summary> /// Stores the parsed field. /// <para> /// This stores a field-value pair that has been parsed. /// The value stored may be out of range for the field - no checks are performed. /// /// </para> /// </summary> /// <param name="field"> the field to set in the field-value map, not null </param> /// <param name="value"> the value to set in the field-value map </param> /// <param name="errorPos"> the position of the field being parsed </param> /// <param name="successPos"> the position after the field being parsed </param> /// <returns> the new position </returns> internal int SetParsedField(TemporalField field, long value, int errorPos, int successPos) { Objects.RequireNonNull(field, "field"); Long old = CurrentParsed().FieldValues[field] = value; return((old != null && old.LongValue() != value) ?~errorPos : successPos); }
private void UpdateCheckConflict(TemporalField targetField, TemporalField changeField, Long changeValue) { Long old = FieldValues[changeField] = changeValue; if (old != java.time.temporal.TemporalAccessor_Fields.Null && old.LongValue() != changeValue.LongValue()) { throw new DateTimeException("Conflict found: " + changeField + " " + old + " differs from " + changeField + " " + changeValue + " while resolving " + targetField); } }
public void Write64(Long aLong) { WriteInteger64ToByteArray(aLong.LongValue()); }