org.jscience.util
Class NAry

java.lang.Object
  extended by org.jscience.util.NAry

public class NAry
extends java.lang.Object

A class representing an element of a relation. This is also named a tuple in the computer world.


Constructor Summary
NAry(java.lang.Object[] elems)
          Creates a new NAry object.
 
Method Summary
 boolean equals(java.lang.Object o)
          DOCUMENT ME!
 int getDimension()
          DOCUMENT ME!
 java.lang.Object[] getValue()
          DOCUMENT ME!
 java.lang.Object getValue(int i)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NAry

public NAry(java.lang.Object[] elems)
Creates a new NAry object.

Parameters:
elems - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!
Method Detail

getDimension

public int getDimension()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getValue

public java.lang.Object[] getValue()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getValue

public java.lang.Object getValue(int i)
DOCUMENT ME!

Parameters:
i - DOCUMENT ME!
Returns:
DOCUMENT ME!

equals

public boolean equals(java.lang.Object o)
DOCUMENT ME!

Overrides:
equals in class java.lang.Object
Parameters:
o - DOCUMENT ME!
Returns:
DOCUMENT ME!