All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.meliorbis.numerics.Range Maven / Gradle / Ivy

Go to download

A library for working with large multi-dimensional arrays and the functions they represent

There is a newer version: 1.2
Show newest version
/**
 * 
 */
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();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy