Package ucar.unidata.data.sounding
Class Link
java.lang.Object
ucar.unidata.data.sounding.Link
- All Implemented Interfaces:
Comparable
- Direct Known Subclasses:
RAOB.Contribution
Provides support for conceptually linking two Link.End-s together.
- Version:
- $Id: Link.java,v 1.9 2006/12/01 20:42:43 jeffmc Exp $
- Author:
- Steven R. Emmerson
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Compares one Link to another.Gets the first Link.End.Gets the second Link.End.
-
Constructor Details
-
Link
Constructs.- Parameters:
end1
- The first Link.End.end2
- The second Link.End.
-
-
Method Details
-
getFirstEnd
Gets the first Link.End.- Returns:
- The first Link.End.
-
getSecondEnd
Gets the second Link.End.- Returns:
- The second Link.End.
-
compareTo
Compares one Link to another. In comparing two Link-s, a major comparison is made between the first ends and then, if necessary, a minor comparison is made between the second ends.- Specified by:
compareTo
in interfaceComparable
- Parameters:
link
- The other Link.- Returns:
- A number that is less that, equal to, or greater than zero depending on whether this Link is less than, equal to, or greater than the other Link, respectively.
-