Java Number Min Value minMax(int val, int min, int max)

Here you can find the source of minMax(int val, int min, int max)

Description

min Max

License

Open Source License

Declaration

public static int minMax(int val, int min, int max) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int minMax(int val, int min, int max) {
        if (val < min)
            val = min;
        if (val > max)
            val = max;
        return val;
    }//  w ww  .  j a va2s. co  m
}

Related

  1. minLimit(float value, float min)
  2. minLog2(int input)
  3. minMax(double v, double min, double max)
  4. minMax(int i)
  5. minmax(int min, int max, int now)
  6. minMax(int value, int min, int max)
  7. minMax(long x, long y, boolean max)
  8. minMaxInt(Long i1, String s, boolean max)
  9. minMaxNormalize(double min, double max, double value)