com.speedment.common.tuple.internal.nullable.mapper.Tuple21OfNullablesMapperImpl 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.nullable.mapper;
import com.speedment.common.tuple.Tuple21;
import com.speedment.common.tuple.TupleMapper;
import com.speedment.common.tuple.TuplesOfNullables;
import com.speedment.common.tuple.internal.AbstractTupleMapper;
import com.speedment.common.tuple.nullable.Tuple21OfNullables;
import java.util.function.Function;
/**
* An implementation class of a {@link TupleMapper } of degree 21
*
* 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
* @param type of element 12
* @param type of element 13
* @param type of element 14
* @param type of element 15
* @param type of element 16
* @param type of element 17
* @param type of element 18
* @param type of element 19
* @param type of element 20
*
* @author Per Minborg
*/
public final class Tuple21OfNullablesMapperImpl
extends AbstractTupleMapper>
implements TupleMapper> {
/**
* Constructs a {@link TupleMapper } that can create {@link Tuple21 }.
*
* @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
* @param m12 mapper to apply for element 12
* @param m13 mapper to apply for element 13
* @param m14 mapper to apply for element 14
* @param m15 mapper to apply for element 15
* @param m16 mapper to apply for element 16
* @param m17 mapper to apply for element 17
* @param m18 mapper to apply for element 18
* @param m19 mapper to apply for element 19
* @param m20 mapper to apply for element 20
*/
public Tuple21OfNullablesMapperImpl(
Function m0,
Function m1,
Function m2,
Function m3,
Function m4,
Function m5,
Function m6,
Function m7,
Function m8,
Function m9,
Function m10,
Function m11,
Function m12,
Function m13,
Function m14,
Function m15,
Function m16,
Function m17,
Function m18,
Function m19,
Function m20) {
super(21);
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);
set(12, m12);
set(13, m13);
set(14, m14);
set(15, m15);
set(16, m16);
set(17, m17);
set(18, m18);
set(19, m19);
set(20, m20);
}
@Override
public Tuple21OfNullables apply(T t) {
return TuplesOfNullables.ofNullables(
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),
get12().apply(t),
get13().apply(t),
get14().apply(t),
get15().apply(t),
get16().apply(t),
get17().apply(t),
get18().apply(t),
get19().apply(t),
get20().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);
}
public Function get12() {
return getAndCast(12);
}
public Function get13() {
return getAndCast(13);
}
public Function get14() {
return getAndCast(14);
}
public Function get15() {
return getAndCast(15);
}
public Function get16() {
return getAndCast(16);
}
public Function get17() {
return getAndCast(17);
}
public Function get18() {
return getAndCast(18);
}
public Function get19() {
return getAndCast(19);
}
public Function get20() {
return getAndCast(20);
}
}