src/main/java/org/fest/assertions/data/Offset.java
public static Offset<Double> offset(Double value) {
    checkNotNull(value);
    if (value.doubleValue() < 0d) {
      throw valueNotPositive();
    }
    return new Offset<Double>(value);
  }
public static Offset<Double> offset(Double value) {
    checkNotNull(value);
    if (value.doubleValue() < 0d) {
      throw valueNotPositive();
    }
    return new Offset<Double>(value);
  }
Creates a new {@link Offset}.

@param value the value of the offset.
@return the created {@code Offset}.
@throws NullPointerException if the given value is {@code null}.
@throws IllegalArgumentException if the given value is negative.