Package org.incendo.cloud.type.tuple
Class DynamicTuple
java.lang.Object
org.incendo.cloud.type.tuple.DynamicTuple
- All Implemented Interfaces:
Tuple
Dynamic sized tuple backed by a
Object[]-
Method Summary
-
Method Details
-
of
Create a new dynamic tuple, containing the given elements- Parameters:
elements- Elements that should be contained in the tuple- Returns:
- Created tuple, preserving the order of the given elements
-
size
public int size()Description copied from interface:TupleReturns the tuple size. -
toArray
Description copied from interface:TupleTurns the tuple into a type erased array.
-