public static Offset<Float> offset(Float value) {
    checkNotNull(value);
    if (value.floatValue() < 0f) {
      throw valueNotPositive();
    }
    return new Offset<Float>(value);
  }
public static Offset<Float> offset(Float value) {
    checkNotNull(value);
    if (value.floatValue() < 0f) {
      throw valueNotPositive();
    }
    return new Offset<Float>(value);
  }
public static Offset < Float > offset ( Float value ) { checkNotNull ( value ) ; if ( value . floatValue ( ) < 0f ) { throw valueNotPositive ( ) ; } return new Offset < Float > ( 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.
Creates a new { @link Offset } .