com.speedment.common.tuple.internal.nonnullable.mapper.Tuple12MapperImpl Maven / Gradle / Ivy
Show all versions of tuple Show documentation
/*
*
* Copyright (c) 2006-2019, Speedment, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); You may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.speedment.common.tuple.internal.nonnullable.mapper;
import com.speedment.common.tuple.Tuple12;
import com.speedment.common.tuple.TupleMapper;
import com.speedment.common.tuple.Tuples;
import com.speedment.common.tuple.internal.AbstractTupleMapper;
import java.util.function.Function;
/**
* An implementation class of a {@link TupleMapper } of degree 12
*
* Generated by com.speedment.sources.pattern.tuple.TupleMapperImplPattern
*
* @param Type of the original object for the mapper to use when creating
* a {@code Tuple }
* @param type of element 0
* @param type of element 1
* @param type of element 2
* @param type of element 3
* @param type of element 4
* @param type of element 5
* @param type of element 6
* @param type of element 7
* @param type of element 8
* @param type of element 9
* @param type of element 10
* @param type of element 11
*
* @author Per Minborg
*/
public final class Tuple12MapperImpl
extends AbstractTupleMapper>
implements TupleMapper> {
/**
* Constructs a {@link TupleMapper } that can create {@link Tuple12 }.
*
* @param m0 mapper to apply for element 0
* @param m1 mapper to apply for element 1
* @param m2 mapper to apply for element 2
* @param m3 mapper to apply for element 3
* @param m4 mapper to apply for element 4
* @param m5 mapper to apply for element 5
* @param m6 mapper to apply for element 6
* @param m7 mapper to apply for element 7
* @param m8 mapper to apply for element 8
* @param m9 mapper to apply for element 9
* @param m10 mapper to apply for element 10
* @param m11 mapper to apply for element 11
*/
public Tuple12MapperImpl(
Function m0,
Function m1,
Function m2,
Function m3,
Function m4,
Function m5,
Function m6,
Function m7,
Function m8,
Function m9,
Function m10,
Function m11) {
super(12);
set(0, m0);
set(1, m1);
set(2, m2);
set(3, m3);
set(4, m4);
set(5, m5);
set(6, m6);
set(7, m7);
set(8, m8);
set(9, m9);
set(10, m10);
set(11, m11);
}
@Override
public Tuple12 apply(T t) {
return Tuples.of(
get0().apply(t),
get1().apply(t),
get2().apply(t),
get3().apply(t),
get4().apply(t),
get5().apply(t),
get6().apply(t),
get7().apply(t),
get8().apply(t),
get9().apply(t),
get10().apply(t),
get11().apply(t)
);
}
public Function get0() {
return getAndCast(0);
}
public Function get1() {
return getAndCast(1);
}
public Function get2() {
return getAndCast(2);
}
public Function get3() {
return getAndCast(3);
}
public Function get4() {
return getAndCast(4);
}
public Function get5() {
return getAndCast(5);
}
public Function get6() {
return getAndCast(6);
}
public Function get7() {
return getAndCast(7);
}
public Function get8() {
return getAndCast(8);
}
public Function get9() {
return getAndCast(9);
}
public Function get10() {
return getAndCast(10);
}
public Function get11() {
return getAndCast(11);
}
}