Top Description Fields Constructors Methods
io.vavr

public final Class Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>

extends Object
implements Tuple, Comparable<Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>>, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, java.lang.Comparable, io.vavr.Tuple
Type Parameters
<T1>
type of the 1st element
<T2>
type of the 2nd element
<T3>
type of the 3rd element
<T4>
type of the 4th element
<T5>
type of the 5th element
<T6>
type of the 6th element
<T7>
type of the 7th element
<T8>
type of the 8th element
Imports
io.vavr.collection.List, .Seq, java.io.Serializable, java.util.Comparator, .Objects, java.util.function.Function

A tuple of 8 elements which can be seen as cartesian product of 8 components.
Author
Daniel Dietrich

Field Summary

Modifier and TypeField and Description
public final T1
_1

The 1st element of this tuple.

public final T2
_2

The 2nd element of this tuple.

public final T3
_3

The 3rd element of this tuple.

public final T4
_4

The 4th element of this tuple.

public final T5
_5

The 5th element of this tuple.

public final T6
_6

The 6th element of this tuple.

public final T7
_7

The 7th element of this tuple.

public final T8
_8

The 8th element of this tuple.

private static final long

Constructor Summary

AccessConstructor and Description
public
Tuple8(T1
the 1st element
t1
,
T2
the 2nd element
t2
,
T3
the 3rd element
t3
,
T4
the 4th element
t4
,
T5
the 5th element
t5
,
T6
the 6th element
t6
,
T7
the 7th element
t7
,
T8
the 8th element
t8
)

Constructs a tuple of 8 elements.

Method Summary

Modifier and TypeMethod and Description
public T1

Returns:

the 1st element of this Tuple.
_1
()

Getter of the 1st element of this tuple.

public T2

Returns:

the 2nd element of this Tuple.
_2
()

Getter of the 2nd element of this tuple.

public T3

Returns:

the 3rd element of this Tuple.
_3
()

Getter of the 3rd element of this tuple.

public T4

Returns:

the 4th element of this Tuple.
_4
()

Getter of the 4th element of this tuple.

public T5

Returns:

the 5th element of this Tuple.
_5
()

Getter of the 5th element of this tuple.

public T6

Returns:

the 6th element of this Tuple.
_6
()

Getter of the 6th element of this tuple.

public T7

Returns:

the 7th element of this Tuple.
_7
()

Getter of the 7th element of this tuple.

public T8

Returns:

the 8th element of this Tuple.
_8
()

Getter of the 8th element of this tuple.

public <
type of the transformation result
U
>
U

Returns:

An object of type U
apply
(Function8<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ? extends U>
Transformation which creates a new object of type U based on this tuple's contents.
f
)

Transforms this tuple to an object of type U.

public int
arity()

Implements io.vavr.Tuple.arity.

Returns the number of elements of this tuple.

public static <T1, T2, T3, T4, T5, T6, T7, T8> Comparator<Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>>
comparator(Comparator<? super T1> t1Comp, Comparator<? super T2> t2Comp, Comparator<? super T3> t3Comp, Comparator<? super T4> t4Comp, Comparator<? super T5> t5Comp, Comparator<? super T6> t6Comp, Comparator<? super T7> t7Comp, Comparator<? super T8> t8Comp)

private static <U1 extends Comparable<? super U1>, U2 extends Comparable<? super U2>, U3 extends Comparable<? super U3>, U4 extends Comparable<? super U4>, U5 extends Comparable<? super U5>, U6 extends Comparable<? super U6>, U7 extends Comparable<? super U7>, U8 extends Comparable<? super U8>> int
compareTo(Tuple8<?, ?, ?, ?, ?, ?, ?, ?> o1, Tuple8<?, ?, ?, ?, ?, ?, ?, ?> o2)

public int
compareTo(Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>
the object to be compared.
that
)

Implements java.lang.Comparable.compareTo.

Compares this object with the specified object for order.

public boolean
equals(Object
the reference object with which to compare.
o
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

public <
new type of the 1st component
U1
,
new type of the 2nd component
U2
,
new type of the 3rd component
U3
,
new type of the 4th component
U4
,
new type of the 5th component
U5
,
new type of the 6th component
U6
,
new type of the 7th component
U7
,
new type of the 8th component
U8
>
Tuple8<U1, U2, U3, U4, U5, U6, U7, U8>

Returns:

A new Tuple of same arity.
map
(Function8<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, Tuple8<U1, U2, U3, U4, U5, U6, U7, U8>>
the mapper function
mapper
)

Maps the components of this tuple using a mapper function.

public <
new type of the 1st component
U1
,
new type of the 2nd component
U2
,
new type of the 3rd component
U3
,
new type of the 4th component
U4
,
new type of the 5th component
U5
,
new type of the 6th component
U6
,
new type of the 7th component
U7
,
new type of the 8th component
U8
>
Tuple8<U1, U2, U3, U4, U5, U6, U7, U8>

Returns:

A new Tuple of same arity.
map
(Function<? super T1, ? extends U1>
the mapper function of the 1st component
f1
,
Function<? super T2, ? extends U2>
the mapper function of the 2nd component
f2
,
Function<? super T3, ? extends U3>
the mapper function of the 3rd component
f3
,
Function<? super T4, ? extends U4>
the mapper function of the 4th component
f4
,
Function<? super T5, ? extends U5>
the mapper function of the 5th component
f5
,
Function<? super T6, ? extends U6>
the mapper function of the 6th component
f6
,
Function<? super T7, ? extends U7>
the mapper function of the 7th component
f7
,
Function<? super T8, ? extends U8>
the mapper function of the 8th component
f8
)

Maps the components of this tuple using a mapper function for each component.

public <
new type of the 1st component
U
>
Tuple8<U, T2, T3, T4, T5, T6, T7, T8>

Returns:

a new tuple based on this tuple and substituted 1st component
map1
(Function<? super T1, ? extends U>
A mapping function
mapper
)

Maps the 1st component of this tuple to a new value.

public <
new type of the 2nd component
U
>
Tuple8<T1, U, T3, T4, T5, T6, T7, T8>

Returns:

a new tuple based on this tuple and substituted 2nd component
map2
(Function<? super T2, ? extends U>
A mapping function
mapper
)

Maps the 2nd component of this tuple to a new value.

public <
new type of the 3rd component
U
>
Tuple8<T1, T2, U, T4, T5, T6, T7, T8>

Returns:

a new tuple based on this tuple and substituted 3rd component
map3
(Function<? super T3, ? extends U>
A mapping function
mapper
)

Maps the 3rd component of this tuple to a new value.

public <
new type of the 4th component
U
>
Tuple8<T1, T2, T3, U, T5, T6, T7, T8>

Returns:

a new tuple based on this tuple and substituted 4th component
map4
(Function<? super T4, ? extends U>
A mapping function
mapper
)

Maps the 4th component of this tuple to a new value.

public <
new type of the 5th component
U
>
Tuple8<T1, T2, T3, T4, U, T6, T7, T8>

Returns:

a new tuple based on this tuple and substituted 5th component
map5
(Function<? super T5, ? extends U>
A mapping function
mapper
)

Maps the 5th component of this tuple to a new value.

public <
new type of the 6th component
U
>
Tuple8<T1, T2, T3, T4, T5, U, T7, T8>

Returns:

a new tuple based on this tuple and substituted 6th component
map6
(Function<? super T6, ? extends U>
A mapping function
mapper
)

Maps the 6th component of this tuple to a new value.

public <
new type of the 7th component
U
>
Tuple8<T1, T2, T3, T4, T5, T6, U, T8>

Returns:

a new tuple based on this tuple and substituted 7th component
map7
(Function<? super T7, ? extends U>
A mapping function
mapper
)

Maps the 7th component of this tuple to a new value.

public <
new type of the 8th component
U
>
Tuple8<T1, T2, T3, T4, T5, T6, T7, U>

Returns:

a new tuple based on this tuple and substituted 8th component
map8
(Function<? super T8, ? extends U>
A mapping function
mapper
)

Maps the 8th component of this tuple to a new value.

public Seq<?>
toSeq()

Implements io.vavr.Tuple.toSeq.

Converts this tuple to a sequence.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>

Returns:

a copy of this tuple with a new value for the 1st element of this Tuple.
update1
(T1
the new value
value
)

Sets the 1st element of this tuple to the given value.

public Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>

Returns:

a copy of this tuple with a new value for the 2nd element of this Tuple.
update2
(T2
the new value
value
)

Sets the 2nd element of this tuple to the given value.

public Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>

Returns:

a copy of this tuple with a new value for the 3rd element of this Tuple.
update3
(T3
the new value
value
)

Sets the 3rd element of this tuple to the given value.

public Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>

Returns:

a copy of this tuple with a new value for the 4th element of this Tuple.
update4
(T4
the new value
value
)

Sets the 4th element of this tuple to the given value.

public Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>

Returns:

a copy of this tuple with a new value for the 5th element of this Tuple.
update5
(T5
the new value
value
)

Sets the 5th element of this tuple to the given value.

public Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>

Returns:

a copy of this tuple with a new value for the 6th element of this Tuple.
update6
(T6
the new value
value
)

Sets the 6th element of this tuple to the given value.

public Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>

Returns:

a copy of this tuple with a new value for the 7th element of this Tuple.
update7
(T7
the new value
value
)

Sets the 7th element of this tuple to the given value.

public Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>

Returns:

a copy of this tuple with a new value for the 8th element of this Tuple.
update8
(T8
the new value
value
)

Sets the 8th element of this tuple to the given value.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

_1back to summary
public final T1 _1

The 1st element of this tuple.

Annotations
@SuppressWarnings:serial
_2back to summary
public final T2 _2

The 2nd element of this tuple.

Annotations
@SuppressWarnings:serial
_3back to summary
public final T3 _3

The 3rd element of this tuple.

Annotations
@SuppressWarnings:serial
_4back to summary
public final T4 _4

The 4th element of this tuple.

Annotations
@SuppressWarnings:serial
_5back to summary
public final T5 _5

The 5th element of this tuple.

Annotations
@SuppressWarnings:serial
_6back to summary
public final T6 _6

The 6th element of this tuple.

Annotations
@SuppressWarnings:serial
_7back to summary
public final T7 _7

The 7th element of this tuple.

Annotations
@SuppressWarnings:serial
_8back to summary
public final T8 _8

The 8th element of this tuple.

Annotations
@SuppressWarnings:serial
serialVersionUIDback to summary
private static final long serialVersionUID

Hides io.vavr.Tuple.serialVersionUID.

Constructor Detail

Tuple8back to summary
public Tuple8(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8)

Constructs a tuple of 8 elements.

Parameters
t1:T1

the 1st element

t2:T2

the 2nd element

t3:T3

the 3rd element

t4:T4

the 4th element

t5:T5

the 5th element

t6:T6

the 6th element

t7:T7

the 7th element

t8:T8

the 8th element

Method Detail

_1back to summary
public T1 _1()

Getter of the 1st element of this tuple.

Returns:T1

the 1st element of this Tuple.

_2back to summary
public T2 _2()

Getter of the 2nd element of this tuple.

Returns:T2

the 2nd element of this Tuple.

_3back to summary
public T3 _3()

Getter of the 3rd element of this tuple.

Returns:T3

the 3rd element of this Tuple.

_4back to summary
public T4 _4()

Getter of the 4th element of this tuple.

Returns:T4

the 4th element of this Tuple.

_5back to summary
public T5 _5()

Getter of the 5th element of this tuple.

Returns:T5

the 5th element of this Tuple.

_6back to summary
public T6 _6()

Getter of the 6th element of this tuple.

Returns:T6

the 6th element of this Tuple.

_7back to summary
public T7 _7()

Getter of the 7th element of this tuple.

Returns:T7

the 7th element of this Tuple.

_8back to summary
public T8 _8()

Getter of the 8th element of this tuple.

Returns:T8

the 8th element of this Tuple.

applyback to summary
public <U> U apply(Function8<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ? extends U> f)

Transforms this tuple to an object of type U.

Parameters
<U>
type of the transformation result
f:Function8<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ? extends U>

Transformation which creates a new object of type U based on this tuple's contents.

Returns:U

An object of type U

Exceptions
NullPointerException:
if f is null
arityback to summary
public int arity()

Implements io.vavr.Tuple.arity.

Doc from io.vavr.Tuple.arity.

Returns the number of elements of this tuple.

Returns:int

the number of elements.

Annotations
@Override
comparatorback to summary
public static <T1, T2, T3, T4, T5, T6, T7, T8> Comparator<Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>> comparator(Comparator<? super T1> t1Comp, Comparator<? super T2> t2Comp, Comparator<? super T3> t3Comp, Comparator<? super T4> t4Comp, Comparator<? super T5> t5Comp, Comparator<? super T6> t6Comp, Comparator<? super T7> t7Comp, Comparator<? super T8> t8Comp)
compareToback to summary
private static <U1 extends Comparable<? super U1>, U2 extends Comparable<? super U2>, U3 extends Comparable<? super U3>, U4 extends Comparable<? super U4>, U5 extends Comparable<? super U5>, U6 extends Comparable<? super U6>, U7 extends Comparable<? super U7>, U8 extends Comparable<? super U8>> int compareTo(Tuple8<?, ?, ?, ?, ?, ?, ?, ?> o1, Tuple8<?, ?, ?, ?, ?, ?, ?, ?> o2)
Annotations
@SuppressWarnings:unchecked
compareToback to summary
public int compareTo(Tuple8<T1, T2, T3, T4, T5, T6, T7, T8> that)

Implements java.lang.Comparable.compareTo.

Doc from java.lang.Comparable.compareTo.

Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

The implementor must ensure signum(x.compareTo(y)) == -signum(y.compareTo(x)) for all x and y. (This implies that x.compareTo(y) must throw an exception if and only if y.compareTo(x) throws an exception.)

The implementor must also ensure that the relation is transitive: (x.compareTo(y) > 0 && y.compareTo(z) > 0) implies x.compareTo(z) > 0.

Finally, the implementor must ensure that x.compareTo(y)==0 implies that signum(x.compareTo(z)) == signum(y.compareTo(z)), for all z.

Parameters
that:Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>

the object to be compared.

Returns:int

a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Annotations
@Override
equalsback to summary
public boolean equals(Object o)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Parameters
o:Object

the reference object with which to compare.

Returns:boolean

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns:int

a hash code value for this object

Annotations
@Override
mapback to summary
public <U1, U2, U3, U4, U5, U6, U7, U8> Tuple8<U1, U2, U3, U4, U5, U6, U7, U8> map(Function8<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, Tuple8<U1, U2, U3, U4, U5, U6, U7, U8>> mapper)

Maps the components of this tuple using a mapper function.

Parameters
<U1>
new type of the 1st component
<U2>
new type of the 2nd component
<U3>
new type of the 3rd component
<U4>
new type of the 4th component
<U5>
new type of the 5th component
<U6>
new type of the 6th component
<U7>
new type of the 7th component
<U8>
new type of the 8th component
mapper:Function8<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, Tuple8<U1, U2, U3, U4, U5, U6, U7, U8>>

the mapper function

Returns:Tuple8<U1, U2, U3, U4, U5, U6, U7, U8>

A new Tuple of same arity.

Exceptions
NullPointerException:
if mapper is null
mapback to summary
public <U1, U2, U3, U4, U5, U6, U7, U8> Tuple8<U1, U2, U3, U4, U5, U6, U7, U8> map(Function<? super T1, ? extends U1> f1, Function<? super T2, ? extends U2> f2, Function<? super T3, ? extends U3> f3, Function<? super T4, ? extends U4> f4, Function<? super T5, ? extends U5> f5, Function<? super T6, ? extends U6> f6, Function<? super T7, ? extends U7> f7, Function<? super T8, ? extends U8> f8)

Maps the components of this tuple using a mapper function for each component.

Parameters
<U1>
new type of the 1st component
<U2>
new type of the 2nd component
<U3>
new type of the 3rd component
<U4>
new type of the 4th component
<U5>
new type of the 5th component
<U6>
new type of the 6th component
<U7>
new type of the 7th component
<U8>
new type of the 8th component
f1:Function<? super T1, ? extends U1>

the mapper function of the 1st component

f2:Function<? super T2, ? extends U2>

the mapper function of the 2nd component

f3:Function<? super T3, ? extends U3>

the mapper function of the 3rd component

f4:Function<? super T4, ? extends U4>

the mapper function of the 4th component

f5:Function<? super T5, ? extends U5>

the mapper function of the 5th component

f6:Function<? super T6, ? extends U6>

the mapper function of the 6th component

f7:Function<? super T7, ? extends U7>

the mapper function of the 7th component

f8:Function<? super T8, ? extends U8>

the mapper function of the 8th component

Returns:Tuple8<U1, U2, U3, U4, U5, U6, U7, U8>

A new Tuple of same arity.

Exceptions
NullPointerException:
if one of the arguments is null
map1back to summary
public <U> Tuple8<U, T2, T3, T4, T5, T6, T7, T8> map1(Function<? super T1, ? extends U> mapper)

Maps the 1st component of this tuple to a new value.

Parameters
<U>
new type of the 1st component
mapper:Function<? super T1, ? extends U>

A mapping function

Returns:Tuple8<U, T2, T3, T4, T5, T6, T7, T8>

a new tuple based on this tuple and substituted 1st component

map2back to summary
public <U> Tuple8<T1, U, T3, T4, T5, T6, T7, T8> map2(Function<? super T2, ? extends U> mapper)

Maps the 2nd component of this tuple to a new value.

Parameters
<U>
new type of the 2nd component
mapper:Function<? super T2, ? extends U>

A mapping function

Returns:Tuple8<T1, U, T3, T4, T5, T6, T7, T8>

a new tuple based on this tuple and substituted 2nd component

map3back to summary
public <U> Tuple8<T1, T2, U, T4, T5, T6, T7, T8> map3(Function<? super T3, ? extends U> mapper)

Maps the 3rd component of this tuple to a new value.

Parameters
<U>
new type of the 3rd component
mapper:Function<? super T3, ? extends U>

A mapping function

Returns:Tuple8<T1, T2, U, T4, T5, T6, T7, T8>

a new tuple based on this tuple and substituted 3rd component

map4back to summary
public <U> Tuple8<T1, T2, T3, U, T5, T6, T7, T8> map4(Function<? super T4, ? extends U> mapper)

Maps the 4th component of this tuple to a new value.

Parameters
<U>
new type of the 4th component
mapper:Function<? super T4, ? extends U>

A mapping function

Returns:Tuple8<T1, T2, T3, U, T5, T6, T7, T8>

a new tuple based on this tuple and substituted 4th component

map5back to summary
public <U> Tuple8<T1, T2, T3, T4, U, T6, T7, T8> map5(Function<? super T5, ? extends U> mapper)

Maps the 5th component of this tuple to a new value.

Parameters
<U>
new type of the 5th component
mapper:Function<? super T5, ? extends U>

A mapping function

Returns:Tuple8<T1, T2, T3, T4, U, T6, T7, T8>

a new tuple based on this tuple and substituted 5th component

map6back to summary
public <U> Tuple8<T1, T2, T3, T4, T5, U, T7, T8> map6(Function<? super T6, ? extends U> mapper)

Maps the 6th component of this tuple to a new value.

Parameters
<U>
new type of the 6th component
mapper:Function<? super T6, ? extends U>

A mapping function

Returns:Tuple8<T1, T2, T3, T4, T5, U, T7, T8>

a new tuple based on this tuple and substituted 6th component

map7back to summary
public <U> Tuple8<T1, T2, T3, T4, T5, T6, U, T8> map7(Function<? super T7, ? extends U> mapper)

Maps the 7th component of this tuple to a new value.

Parameters
<U>
new type of the 7th component
mapper:Function<? super T7, ? extends U>

A mapping function

Returns:Tuple8<T1, T2, T3, T4, T5, T6, U, T8>

a new tuple based on this tuple and substituted 7th component

map8back to summary
public <U> Tuple8<T1, T2, T3, T4, T5, T6, T7, U> map8(Function<? super T8, ? extends U> mapper)

Maps the 8th component of this tuple to a new value.

Parameters
<U>
new type of the 8th component
mapper:Function<? super T8, ? extends U>

A mapping function

Returns:Tuple8<T1, T2, T3, T4, T5, T6, T7, U>

a new tuple based on this tuple and substituted 8th component

toSeqback to summary
public Seq<?> toSeq()

Implements io.vavr.Tuple.toSeq.

Doc from io.vavr.Tuple.toSeq.

Converts this tuple to a sequence.

Returns:Seq<?>

A new Seq.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
update1back to summary
public Tuple8<T1, T2, T3, T4, T5, T6, T7, T8> update1(T1 value)

Sets the 1st element of this tuple to the given value.

Parameters
value:T1

the new value

Returns:Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>

a copy of this tuple with a new value for the 1st element of this Tuple.

update2back to summary
public Tuple8<T1, T2, T3, T4, T5, T6, T7, T8> update2(T2 value)

Sets the 2nd element of this tuple to the given value.

Parameters
value:T2

the new value

Returns:Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>

a copy of this tuple with a new value for the 2nd element of this Tuple.

update3back to summary
public Tuple8<T1, T2, T3, T4, T5, T6, T7, T8> update3(T3 value)

Sets the 3rd element of this tuple to the given value.

Parameters
value:T3

the new value

Returns:Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>

a copy of this tuple with a new value for the 3rd element of this Tuple.

update4back to summary
public Tuple8<T1, T2, T3, T4, T5, T6, T7, T8> update4(T4 value)

Sets the 4th element of this tuple to the given value.

Parameters
value:T4

the new value

Returns:Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>

a copy of this tuple with a new value for the 4th element of this Tuple.

update5back to summary
public Tuple8<T1, T2, T3, T4, T5, T6, T7, T8> update5(T5 value)

Sets the 5th element of this tuple to the given value.

Parameters
value:T5

the new value

Returns:Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>

a copy of this tuple with a new value for the 5th element of this Tuple.

update6back to summary
public Tuple8<T1, T2, T3, T4, T5, T6, T7, T8> update6(T6 value)

Sets the 6th element of this tuple to the given value.

Parameters
value:T6

the new value

Returns:Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>

a copy of this tuple with a new value for the 6th element of this Tuple.

update7back to summary
public Tuple8<T1, T2, T3, T4, T5, T6, T7, T8> update7(T7 value)

Sets the 7th element of this tuple to the given value.

Parameters
value:T7

the new value

Returns:Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>

a copy of this tuple with a new value for the 7th element of this Tuple.

update8back to summary
public Tuple8<T1, T2, T3, T4, T5, T6, T7, T8> update8(T8 value)

Sets the 8th element of this tuple to the given value.

Parameters
value:T8

the new value

Returns:Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>

a copy of this tuple with a new value for the 8th element of this Tuple.