com.meliorbis.numerics.Range Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Numerics Show documentation
Show all versions of Numerics Show documentation
A library for working with large multi-dimensional arrays and the functions they represent
/**
*
*/
package com.meliorbis.numerics;
import com.meliorbis.utils.Pair;
/**
* Specifies a range of integers between two values (inclusive)
*
* @author toby
*/
public final class Range extends Pair
{
private static final long serialVersionUID = 1L;
/**
* Use this one to indicate all possible values
*/
public final static Range FULL = new Range(Integer.MIN_VALUE, Integer.MAX_VALUE);
public Range(int from_, int to_)
{
super(from_,to_);
}
public int from()
{
return getLeft();
}
public int to()
{
return getRight();
}
}