Java Number Range Check inRange(int minValue, int maxValue, int value)

Here you can find the source of inRange(int minValue, int maxValue, int value)

Description

in Range

License

Open Source License

Declaration

public static boolean inRange(int minValue, int maxValue, int value) 

Method Source Code

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

public class Main {
    public static boolean inRange(int minValue, int maxValue, int value) {
        if (maxValue < minValue) {
            return false;
        }//from   w  w  w  . j a  v  a2 s .c  o  m
        return (value >= minValue) && (value <= maxValue);
    }
}

Related

  1. inrange(int actual, int leftRange, int rightRange)
  2. inRange(int check, int range)
  3. inRange(int checkValue, int min, int max)
  4. inRange(int firstIndex, int secondIndex)
  5. inRange(int l, int u, int v, int... v_)
  6. inRange(int n, int lo, int hi)
  7. inRange(int num, int from, int to, int flag)
  8. inRange(int value, int lowerBound, int upperBound)
  9. inRange(int value, int min, int max)