public static interface Tuple.Ops1<A> extends Tuple
Tuple.Ops1<A>, Tuple.Ops2<A,B>, Tuple.Ops3<A,B,C>, Tuple.Ops4<A,B,C,D>, Tuple.Ops5<A,B,C,D,E>| Modifier and Type | Method and Description |
|---|---|
<T> Tuple.Ops2<A,?> |
add(T t)
Adds a new item to this tuple.
|
A |
getFirst()
Retrieves the first item in the tuple.
|
<T> Tuple.Ops2<T,A> |
insertFirst(T t)
Adds an item into the first position of this tuple.
|
<T> Tuple.Ops2<A,T> |
insertSecond(T t)
Inserts an item into the second position of this tuple.
|
Tuple |
removeFirst()
Removes the first item from the tuple.
|
<T> Tuple.Ops1<T> |
setFirst(T t)
Sets the first item in the tuple.
|
<T> Tuple.Ops1<T> |
transformAll(Function<Object,? extends T> function)
Transforms every item in this tuple by applying the specified function to each one.
|
<T> Tuple.Ops1<T> |
transformFirst(Function<? super A,? extends T> function)
Transforms the first item in the tuple using the specified function.
|
asList, contains, equals, hashCode, isEmpty, size, toArray, toArrayforEach, iterator, spliteratorA getFirst()
<T> Tuple.Ops1<T> setFirst(T t)
t - the new itemTuple removeFirst()
<T> Tuple.Ops2<A,?> add(T t)
Tuple<T> Tuple.Ops2<T,A> insertFirst(T t)
TupleinsertFirst in interface Tuplet - the item to insert<T> Tuple.Ops2<A,T> insertSecond(T t)
If this tuple has only one item then this is the same as calling add(Object).
Otherwise, this will insert an item after the first item but before the second.
t - the new item<T> Tuple.Ops1<T> transformAll(Function<Object,? extends T> function)
TupletransformAll in interface Tuplefunction - the function to apply<T> Tuple.Ops1<T> transformFirst(Function<? super A,? extends T> function)
function - the function to apply