Package io.smallrye.mutiny.tuples
Interface Tuple
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.List<java.lang.Object>
asList()
default java.util.Iterator<java.lang.Object>
iterator()
Gets an immutableIterator
traversing the content of thisTuple
.java.lang.Object
nth(int index)
Get the item stored at the given index.int
size()
-
-
-
Method Detail
-
nth
java.lang.Object nth(int index)
Get the item stored at the given index.- Parameters:
index
- The index of the item to retrieve.- Returns:
- The item, can be
null
- Throws:
java.lang.IndexOutOfBoundsException
- if the index is greater than the size.
-
asList
java.util.List<java.lang.Object> asList()
- Returns:
- A list containing the item of the tuple.
-
iterator
default java.util.Iterator<java.lang.Object> iterator()
Gets an immutableIterator
traversing the content of thisTuple
.- Specified by:
iterator
in interfacejava.lang.Iterable<java.lang.Object>
- Returns:
- the iterator
-
size
int size()
- Returns:
- the number of items stored in the
Tuple
-
-