Package manifold.tuple.rt.api
Interface Tuple
-
- All Known Implementing Classes:
GeneratedTuple
public interface Tuple extends Iterable<TupleItem>
Root interface for tuples. SeeGeneratedTuple
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Tuplecopy()Iterator<TupleItem>iterator()The tuple's name/value pairs, natural order.List<String>orderedLabels()The tuple's labels, natural order.List<?>orderedValues()The tuple's values, natural order.default Map<String,Object>toMap(boolean recursive)Make a map reflecting the name/value pairs of this tuple.-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
orderedValues
List<?> orderedValues()
The tuple's values, natural order.
-
toMap
default Map<String,Object> toMap(boolean recursive)
Make a map reflecting the name/value pairs of this tuple.- Parameters:
recursive- If true, recursively calls this method for values that are tuples.- Returns:
- A map reflecting name/value pairs of this tuple.
-
copy
default Tuple copy()
- Returns:
- A shallow copy of this tuple. The return type is the receiver's type.
-
-