static create()

Creates the Maximum instance with the given primitive value

Maximum.create()

Creates the Maximum instance with the given primitive value.

maximum.class.ts
public static define<Value extends number>(value: Value): Maximum<Value> {
  return new this(value);
}

Generic type variables

A generic type variable indicates captured type of the supplied value via the return type.

Parameters

value:Value

The maximum number of generic type variable Value to set with a new instance.

Return type

Maximum<Value>

The return type is the Maximum primitive wrapper objectarrow-up-right that takes the generic type variable Value.

Returns

The return value is the Maximum instance of any or the given primitive value.

Example usage

Last updated