|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.common.TupleArray
Array for managing tuples
Tuple
,
Serialized FormField Summary | |
private static long |
serialVersionUID
Serial Version UID |
private java.util.ArrayList |
tuples
The buffer into which the elements are stored. |
Constructor Summary | |
TupleArray()
Constructs an empty list |
Method Summary | |
java.util.Collection |
a()
Returns all A-Values form the tuple list. |
java.lang.Object |
a(int index)
Returns the A-Value form the tuple at the specified position in this list. |
void |
add(java.lang.Object a,
java.lang.Object b)
Creates a new Tuple and adds it to the list |
void |
add(Tuple tuple)
Appends the specified tuple to this list. |
java.util.Collection |
b()
Returns all B-Values form the tuple list. |
java.lang.Object |
b(int index)
Returns the B-Value form the tuple at the specified position in this list. |
void |
clear()
Removes all of the elements from this list. |
Tuple |
get(int index)
Returns the element at the specified position in this list. |
boolean |
isEmpty()
Tests if this list has no elements. |
int |
size()
Returns the number of elements in this list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
private java.util.ArrayList tuples
Constructor Detail |
public TupleArray()
Method Detail |
public void add(Tuple tuple)
tuple
- Tuple to be appended to this list.public void add(java.lang.Object a, java.lang.Object b)
a
- Object1b
- Object2public Tuple get(int index)
index
- Index of element to return.
public java.lang.Object a(int index)
index
- Index of element to return.
public java.util.Collection a()
public java.lang.Object b(int index)
index
- Index of element to return.
public java.util.Collection b()
public boolean isEmpty()
public int size()
public void clear()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |