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

Valueextendsnumber

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 object that takes the generic type variable Value.

Returns

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

Example usage

// Example usage.
import { Maximum } from '@angular-package/range';

// Returns Maximum {27} of Maximum<27>.
Maximum.create(27);

Last updated