Java Number Range Check inRange(final int value, final int min, final int max)

Here you can find the source of inRange(final int value, final int min, final int max)

Description

in Range

License

Open Source License

Declaration

private static int inRange(final int value, final int min, final int max) 

Method Source Code

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

public class Main {
    private static int inRange(final int value, final int min, final int max) {
        return Math.max(Math.min(value, max), min);
    }//from  w  w w  .j  a v a2  s  . c o  m
}

Related

  1. inRange(double value, double target, double range)
  2. inRange(double x, double y, double z, double sx, double sy, double sz, double r)
  3. inRange(E element, E min, E max)
  4. inRange(final float testNum, final float min, final float max)
  5. inRange(final int id, final int min, final int max)
  6. inRange(final int value, final int min, final int max, final String fieldName)
  7. inRange(float n, float min, float max)
  8. inrange(int actual, int leftRange, int rightRange)
  9. inRange(int check, int range)