|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
com.aliasi.util.Tuple<E>
public abstract class Tuple<E>
A tuple is an immutable ordered list of objects or
null values with equality conditions determined
pointwise.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Method Summary | ||
|---|---|---|
static
|
create()
Returns a zero-length tuple. |
|
static
|
create(E obj)
Returns a tuple of length one containing the specified object. |
|
static
|
create(E[] objs)
Creates a tuple from the specified array of objects. |
|
static
|
create(E o1,
E o2)
Returns a new tuple representing a pair of objects. |
|
abstract E |
get(int index)
Returns the object at the specified index in the tuple. |
|
int |
hashCode()
Returns the hash code for this list. |
|
abstract int |
size()
Returns the length of the tuple. |
|
| Methods inherited from class java.util.AbstractList |
|---|
add, add, addAll, clear, equals, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Method Detail |
|---|
public abstract int size()
size in interface Collection<E>size in interface List<E>size in class AbstractCollection<E>public abstract E get(int index)
get in interface List<E>get in class AbstractList<E>index - Index of element to return.
IndexOutOfBoundsException - If the index is out of bounds.public int hashCode()
List.
hashCode in interface Collection<E>hashCode in interface List<E>hashCode in class AbstractList<E>public static <E> Tuple<E> create()
public static <E> Tuple<E> create(E obj)
obj - Object to include in tuple.
public static <E> Tuple<E> create(E[] objs)
objs - Objects on which to base tuple.
public static <E> Tuple<E> create(E o1,
E o2)
o1 - First object in pair.o2 - Second object in pair.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||