Last change
on this file since 174 was
174,
checked in by vmipsl, 13 years ago
|
Applets _ récupération des sources
|
File size:
1.4 KB
|
Line | |
---|
1 | /* |
---|
2 | * $Id: Range.java,v 1.3 2001/02/09 18:42:30 dwd Exp $ |
---|
3 | * |
---|
4 | * This software is provided by NOAA for full, free and open release. It is |
---|
5 | * understood by the recipient/user that NOAA assumes no liability for any |
---|
6 | * errors contained in the code. Although this software is released without |
---|
7 | * conditions or restrictions in its use, it is expected that appropriate |
---|
8 | * credit be given to its author and to the National Oceanic and Atmospheric |
---|
9 | * Administration should the software be included by the recipient as an |
---|
10 | * element in other product development. |
---|
11 | */ |
---|
12 | |
---|
13 | package gov.noaa.pmel.util; |
---|
14 | |
---|
15 | /** |
---|
16 | * Contains minimum and maximum integer values. |
---|
17 | * |
---|
18 | * @author Donald Denbo |
---|
19 | * @version $Revision: 1.3 $, $Date: 2001/02/09 18:42:30 $ |
---|
20 | * @since sgt 1.0 |
---|
21 | */ |
---|
22 | public class Range implements java.io.Serializable { |
---|
23 | /** The range's first value */ |
---|
24 | public int start; |
---|
25 | /** The range's last value */ |
---|
26 | public int end; |
---|
27 | /** |
---|
28 | * Default constructor |
---|
29 | */ |
---|
30 | public Range() { |
---|
31 | this(0, 0); |
---|
32 | } |
---|
33 | /** |
---|
34 | * Initializes Range with start and end integral values. |
---|
35 | * |
---|
36 | * @param start first value |
---|
37 | * @param end last value |
---|
38 | */ |
---|
39 | public Range(int start,int end) { |
---|
40 | this.start = start; |
---|
41 | this.end = end; |
---|
42 | } |
---|
43 | /** |
---|
44 | * Test <code>Range</code> for equality. Both start and end must be |
---|
45 | * equal for equality. |
---|
46 | */ |
---|
47 | public boolean equals(Range r) { |
---|
48 | return (start == r.start && end == r.end); |
---|
49 | } |
---|
50 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.