static createMaximum()
Returns the `Maximum` instance of the given maximum value
Last updated
Returns the `Maximum` instance of the given maximum value
Range.createMaximum()The static createMaximum() method returns the Maximum instance of the given maximum value.
public static createMaximum<Value extends number>(
value: Value
): Maximum<Value> {
return Maximum.create(value);
}ValueextendsnumberA generic type variable constrained by the number, by default of the value captured from the supplied value indicates the primitive value type of a new Maximum instance.
value:ValueThe maximum range of a generic type variable Value to set with a new instance of Maximum.
Maximum<Value>The return type is the Maximum object that takes generic type variable Value.
The return value is the Maximum instance with the primitive value from the given value.
Last updated
// Example usage.
import { Range } from '@angular-package/range';
// Returns Maximum {27} of Maximum<27>.
Range.createMaximum(27);