Package org.dmfs.jems2.function
Class Clamping<T extends Comparable<T>>
java.lang.Object
org.dmfs.jems2.function.Clamping<T>
- All Implemented Interfaces:
FragileFunction<T,,T, RuntimeException> Function<T,,T> ThrowingFunction<T,T>
Function decorator that 'clamps' the value between the provided min and max values.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Clamping
-
-
Method Details
-
value
Description copied from interface:FunctionReturns the value of this function at the given argument.- Specified by:
valuein interfaceFragileFunction<T extends Comparable<T>,T extends Comparable<T>, RuntimeException> - Specified by:
valuein interfaceFunction<T extends Comparable<T>,T extends Comparable<T>> - Specified by:
valuein interfaceThrowingFunction<T extends Comparable<T>,T extends Comparable<T>>
-