Fix tuple#toArray implementations
This commit is contained in:
parent
213039fc20
commit
a6eb44376c
4 changed files with 12 additions and 9 deletions
|
|
@ -147,8 +147,8 @@ public class Quartet<U, V, W, X> implements Tuple {
|
|||
final Object[] array = new Object[4];
|
||||
array[0] = this.first;
|
||||
array[1] = this.second;
|
||||
array[3] = this.third;
|
||||
array[4] = this.fourth;
|
||||
array[2] = this.third;
|
||||
array[3] = this.fourth;
|
||||
return array;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -164,9 +164,9 @@ public class Quintet<U, V, W, X, Y> implements Tuple {
|
|||
final Object[] array = new Object[5];
|
||||
array[0] = this.first;
|
||||
array[1] = this.second;
|
||||
array[3] = this.third;
|
||||
array[4] = this.fourth;
|
||||
array[5] = this.fifth;
|
||||
array[2] = this.third;
|
||||
array[3] = this.fourth;
|
||||
array[4] = this.fifth;
|
||||
return array;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -183,10 +183,10 @@ public class Sextet<U, V, W, X, Y, Z> implements Tuple {
|
|||
final Object[] array = new Object[6];
|
||||
array[0] = this.first;
|
||||
array[1] = this.second;
|
||||
array[3] = this.third;
|
||||
array[4] = this.fourth;
|
||||
array[5] = this.fifth;
|
||||
array[6] = this.sixth;
|
||||
array[2] = this.third;
|
||||
array[3] = this.fourth;
|
||||
array[4] = this.fifth;
|
||||
array[5] = this.sixth;
|
||||
return array;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue