Lines Matching refs:min
98 // Returns the input value x clamped to the range [min, max].
99 public static int clamp(int x, int min, int max) {
101 if (x < min) return min;
105 // Returns the input value x clamped to the range [min, max].
106 public static float clamp(float x, float min, float max) {
108 if (x < min) return min;
112 // Returns the input value x clamped to the range [min, max].
113 public static long clamp(long x, long min, long max) {
115 if (x < min) return min;
321 newSize = Math.min(source.length, newSize);
332 int length = Math.min(s.length(), MASK_STRING.length());