hydroScalingAPI.tools
Class Pair

java.lang.Object
  extended by hydroScalingAPI.tools.Pair
All Implemented Interfaces:
java.lang.Comparable

public class Pair
extends java.lang.Object
implements java.lang.Comparable

An auxiliary object composed by two properties. It allows to sort a group of this objects using property1

Author:
Peter Furey

Field Summary
 float property1
          The master property
 float property2
          The secondary property
 
Constructor Summary
Pair(float a, float b)
          Creates a new instance of Pair
 
Method Summary
 int compareTo(java.lang.Object o)
          The compareTo implementation for the Pair object
static void main(java.lang.String[] args)
          Tests for the class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

property1

public float property1
The master property


property2

public float property2
The secondary property

Constructor Detail

Pair

public Pair(float a,
            float b)
Creates a new instance of Pair

Parameters:
a - The value to assign to the master property
b - The value to assign to the secondary property
Method Detail

compareTo

public int compareTo(java.lang.Object o)
The compareTo implementation for the Pair object

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - The object to be compared against
Returns:
A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

main

public static void main(java.lang.String[] args)
Tests for the class

Parameters:
args - the command line arguments


CUENCAS was initially developed by Ricardo Mantilla at the University of Colorado under the supervision of Dr. Vijay K. Gupta. We wish to recognize the support from the National Science Fundation.