package fundamental.games.metropolis.global;

/**
 * Created by Adam Bobowski on 5/16/2015.
 *
 * Guess what's that!
 */
public class Range {
    private int lower;
    private int upper;

    public Range(int lower, int upper) {
        if(lower > upper) {
            throw new IllegalArgumentException();
        }

        this.lower = lower;
        this.upper = upper;
    }

    public Range(int value) {
        this(value, value);
    }

    public int getLower() {
        return lower;
    }

    public int getUpper() {
        return upper;
    }

    public void setUpper(int upper) {
        this.upper = upper;
    }

    public void setLower(int lower) {
        this.lower = lower;
    }
}
