Here you can find the source of inRange(final int id, final int min, final int max)
public static boolean inRange(final int id, final int min, final int max)
//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 }