/*
* $Id: Range.java,v 1.3 2001/02/09 18:42:30 dwd Exp $
*
* This software is provided by NOAA for full, free and open release. It is
* understood by the recipient/user that NOAA assumes no liability for any
* errors contained in the code. Although this software is released without
* conditions or restrictions in its use, it is expected that appropriate
* credit be given to its author and to the National Oceanic and Atmospheric
* Administration should the software be included by the recipient as an
* element in other product development.
*/
package sgtplot.util;
/**
* Contains minimum and maximum integer values.
*
* @author Donald Denbo
* @version $Revision: 1.3 $, $Date: 2001/02/09 18:42:30 $
* @since sgtplot 1.0
*/
public class Range implements java.io.Serializable {
/** The range's first value */
public int start;
/** The range's last value */
public int end;
/**
* Default constructor
*/
public Range() {
this(0, 0);
}
/**
* Initializes Range with start and end integral values.
*
* @param start first value
* @param end last value
*/
public Range(int start,int end) {
this.start = start;
this.end = end;
}
/**
* Test Range for equality. Both start and end must be
* equal for equality.
*/
public boolean equals(Range r) {
return (start == r.start && end == r.end);
}
}
Ads help maintain this website.