|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.util.Tuple
A simple tuple, i.e. an array of objects. In contrast to an object array,
this class provides convenient methods as well as implementations of
equals(Object),hashCode() and
toString().
| Field Summary | |
protected java.lang.Object[] |
array
Array with the tuple values. |
| Constructor Summary | |
Tuple(java.lang.Object[] array)
Creates a new object. |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
|
java.lang.Object |
get(int i)
Returns the i-th object. |
double |
getDouble(int i)
Returns the i-th object as a double. |
int |
getInt(int i)
Returns the i-th object as an integer. |
java.lang.String |
getString(int i)
Returns the i-th object as a string. |
int |
hashCode()
|
int |
length()
Returns the length, i.e. the number of objects. |
void |
set(int i,
java.lang.Object o)
Sets the i-th object. |
int |
size()
Returns the length, i.e. the number of objects. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.Object[] array
| Constructor Detail |
public Tuple(java.lang.Object[] array)
array - objects| Method Detail |
public int length()
public int size()
public java.lang.Object get(int i)
i - index number
public void set(int i,
java.lang.Object o)
i - index numbero - object to be set at this index numberpublic double getDouble(int i)
i - index number
public int getInt(int i)
i - index number
public java.lang.String getString(int i)
i - index number
public boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||