| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.tuplespace.simple.SimpleTuple
A simple implementation of Tuple which stores the objects in an
 array.
| Constructor Summary | |
SimpleTuple(Object value0)
 | 
|
SimpleTuple(Object[] values)
 | 
|
SimpleTuple(Object value0,
            Object value1)
 | 
|
SimpleTuple(Object value0,
            Object value1,
            Object value2)
 | 
|
| Method Summary | |
 boolean | 
equals(Object o)
Tuples can be equal to each other if they have the same values in the same positions.  | 
 Object | 
getValueAt(int index)
Returns the object held at index index in the tuple.  | 
 int | 
hashCode()
 | 
 int | 
length()
Returns the length of this tuple.  | 
 String | 
toString()
 | 
| Methods inherited from class java.lang.Object | 
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public SimpleTuple(Object value0)
public SimpleTuple(Object value0,
                   Object value1)
public SimpleTuple(Object value0,
                   Object value1,
                   Object value2)
public SimpleTuple(Object[] values)
| Method Detail | 
public Object getValueAt(int index)
                  throws IllegalArgumentException
Tuple
getValueAt in interface Tupleindex - The object's index, from 0 to Tuple.length()-1.
IllegalArgumentException - If index is out of range.public int length()
Tuple
length in interface Tuplepublic boolean equals(Object o)
o - The other tuple to test equality against.
true if both tuples have the same values in the
         same order.public int hashCode()
public String toString()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||