|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.noaa.pmel.util.Range2D
Contains minimum, maximum, and delta double values.
Field Summary | |
double |
delta
The value of the increment |
double |
end
The range's last value |
double |
start
The range's first value |
Constructor Summary | |
Range2D()
Default constructor. |
|
Range2D(double ustart,
double uend)
Construct Range2D with start and end. |
|
Range2D(double ustart,
double uend,
double udel)
Range2D constructor. |
Method Summary | |
void |
add(Range2D range)
Adds the Range2D object to this
Range2D . |
Range2D |
copy()
Create a copy of Range2D object. |
boolean |
equals(Range2D r)
Test for equality. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public double start
public double end
public double delta
Constructor Detail |
public Range2D()
public Range2D(double ustart, double uend)
ustart
- first valueuend
- last valuepublic Range2D(double ustart, double uend, double udel)
ustart
- first valueuend
- last valueudel
- increment valueMethod Detail |
public void add(Range2D range)
Range2D
object to this
Range2D
. The resulting Range2D
is
the smallest Range2D
that contains both the
origial Range2D
and the specified
Range2D
.public boolean equals(Range2D r)
public java.lang.String toString()
java.lang.Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString
in class java.lang.Object
java.lang.Object
public Range2D copy()
Range2D
object.
|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |