public interface Tuple
An ordered list of elements of a fixed size, where each element can have a different type.
All implementations must be final, immutable and thread-safe.
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
elements()
Gets the elements from this tuple as a list.
|
int |
size()
Gets the number of elements held by this tuple.
|
int size()
Each tuple type has a fixed size, returned by this method.
For example, Pair returns 2.
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.