All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jnt.util.Tuple

java.lang.Object
   |
   +----jnt.util.Tuple

public class Tuple
extends Object
A pair of real numbers (x,y), with no restriction that x <= y.

Version:
25 Sept 1997
Author:
Ronald F. Boisvert, NIST

Variable Index

 o x
The first element of the tuple.
 o y
The second element of the tuple.

Constructor Index

 o Tuple()
Creates the tuple (0,0)
 o Tuple(double, double)
Creates the tuple (x,y).
 o Tuple(float, float)
Creates the tuple (x,y).
 o Tuple(int, int)
Creates the tuple (x,y).

Method Index

 o toString()
Returns a representation of the tuple as a String.

Variables

 o x
 public double x
The first element of the tuple.

 o y
 public double y
The second element of the tuple.

Constructors

 o Tuple
 public Tuple()
Creates the tuple (0,0)

 o Tuple
 public Tuple(double x,
              double y)
Creates the tuple (x,y).

 o Tuple
 public Tuple(float x,
              float y)
Creates the tuple (x,y).

 o Tuple
 public Tuple(int x,
              int y)
Creates the tuple (x,y).

Methods

 o toString
 public String toString()
Returns a representation of the tuple as a String.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index