Java Utililty Methods Byte Clamp

List of utility methods to do Byte Clamp

Description

The list of methods to do Byte Clamp are organized into topic(s).

Method

byteclamp(byte value, byte lower, byte upper)
Clamp a value to an interval.
return (value < lower ? lower : (value > upper ? upper : value));
byteCLAMP(byte x, byte min, byte max)
CLAMP
if (x < min)
    return min;
if (x > max)
    return max;
return x;