E - the type of object stored in the tuplepublic abstract class Tuple<E> extends AbstractList<E>
null values with equality conditions determined
pointwise.modCount| Modifier and Type | Method and Description |
|---|---|
static <E> Tuple<E> |
create()
Returns a zero-length tuple.
|
static <E> Tuple<E> |
create(E obj)
Returns a tuple of length one containing the specified
object.
|
static <E> Tuple<E> |
create(E[] objs)
Creates a tuple from the specified array
of objects.
|
static <E> Tuple<E> |
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.
|
add, add, addAll, clear, equals, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringpublic 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()
E - the type of object stored in the tuplepublic static <E> Tuple<E> create(E obj)
E - the type of object stored in the tupleobj - Object to include in tuple.public static <E> Tuple<E> create(E[] objs)
E - the type of object stored in the tupleobjs - Objects on which to base tuple.public static <E> Tuple<E> create(E o1, E o2)
E - the type of object stored in the tupleo1 - First object in pair.o2 - Second object in pair.Copyright © 2016 Alias-i, Inc.. All rights reserved.