NullableIntExtensions extension

on

Methods

limitMax(int maxValue) int
Determines the maximum limitation of two values.
limitMin(int minValue) int
Determines the minimum limitation of two values.
limitWithin(int minValue, int maxValue) int
Determines the minimum and maximum limitation of two values. If this value is between {minValue} and {maxValue}, this value is returned. If this value is smaller than {minvalue}, {minvalue} is returned. If this value is greater than {maxvalue}, {maxvalue} is returned.