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

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

Description

in Range

License

Open Source License

Declaration

public static boolean inRange(final int id, final int min, final int max) 

Method Source Code

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

public class Main {
    public static boolean inRange(final int id, final int min, final int max) {
        if (min > 10000)
            return (id > min && id < max);
        return (id < max && id > min);
    }//from   w  w  w . j a v  a  2  s.co  m
}

Related

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