| Constructor and Description |
|---|
Tuple(Object... values)
Creates a new tuple from values.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static Tuple |
fromArray(Object[] values)
Helper factory method.
|
Object |
get(int index)
Gets the element at a specified index.
|
int |
hashCode() |
boolean |
isEmpty()
Checks whether the tuple is empty or not.
|
Iterator<Object> |
iterator()
Creates an iterator over the tuple.
|
int |
size()
Gives the number of elements in this tuple.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic Tuple(Object... values)
values - the tuple values.public static Tuple fromArray(Object[] values)
values - the values as an array.public int size()
public boolean isEmpty()
true if the tuple has no element, false otherwise.public Object get(int index)
index - the element index.index.IndexOutOfBoundsException - if the specified index is not valid (negative value or above the size).public Iterator<Object> iterator()
The iterator does not support removal.
Copyright © 2014 Institut National des Sciences Appliquées de Lyon (INSA-Lyon). All Rights Reserved.