1 /* 2 * 3 * Fosstrak LLRP Commander (www.fosstrak.org) 4 * 5 * Copyright (C) 2008 ETH Zurich 6 * 7 * This program is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program. If not, see <http://www.gnu.org/licenses/> 19 * 20 */ 21 22 package org.fosstrak.llrp.commander.util; 23 24 /** 25 * This class represents a numeric range. 26 * 27 * @author Ulrich Etter, ETHZ 28 * 29 */ 30 public class Range { 31 32 private int lowerBound; 33 private int upperBound; 34 35 /** 36 * Creates a new range. 37 * 38 * @param lowerBound the lower bound of the range; use <code>Integer.MIN_VALUE</code> 39 * if this range shall not have a lower bound 40 * @param upperBound the upper bound of the range; use <code>Integer.MAX_VALUE</code> 41 * if this range shall not have an upper bound 42 */ 43 public Range(int lowerBound, int upperBound){ 44 this.lowerBound = lowerBound; 45 this.upperBound = upperBound; 46 } 47 48 /** 49 * @return the lower bound of this range 50 */ 51 public int getLowerBound() { 52 return lowerBound; 53 } 54 55 /** 56 * @return the upper bound of this range 57 */ 58 public int getUpperBound() { 59 return upperBound; 60 } 61 }