(int amount, int low, int high)
| 24 | } |
| 25 | |
| 26 | public static int clamp(int amount, int low, int high) |
| 27 | { |
| 28 | if(BuildConfig.DEBUG && low > high) |
| 29 | throw new InvalidParameterException("low > high"); |
| 30 | return amount < low ? low : (amount > high ? high : amount); |
| 31 | } |
| 32 | |
| 33 | public static long clamp(long amount, long low, long high) |
| 34 | { |
nothing calls this directly
no outgoing calls
no test coverage detected