code: public static int getWrappedValue(int currentValue, int wrapValue,
                                        int minValue, int maxValue) {
          return getWrappedValue(currentValue + wrapValue, minValue, maxValue);
      }
docs: Utility method used by addWrapField implementations to ensure the new
  value lies within the field's legal value range.
  
  @param currentValue the current value of the data, which may lie outside
  the wrapped value range
  @param wrapValue  the value to add to current value before
  wrapping.  This may be negative.
  @param minValue the wrap range minimum value.
  @param maxValue the wrap range maximum value.  This must be
  greater than minValue (checked by the method).
  @return the wrapped value
  @throws IllegalArgumentException if minValue is greater
  than or equal to maxValue