1 /* 2 * Copyright (C) 2015 The Dagger Authors. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package dagger.functional; 18 19 import dagger.Lazy; 20 import javax.inject.Inject; 21 import javax.inject.Provider; 22 23 class ComplexGenerics { 24 25 final Generic2<Generic<A>> g2ga; 26 final Lazy<Generic2<Generic<A>>> g2gaLazy; 27 final Provider<Generic2<Generic<A>>> g2gaProvider; 28 final Generic2<Generic<B>> g2gb; 29 final Lazy<Generic2<Generic<B>>> g2gbLazy; 30 final Provider<Generic2<Generic<B>>> g2gbProvider; 31 final Generic2<A> g2a; 32 final Generic<Generic2<A>> gg2a; 33 final Generic<Generic2<B>> gg2b; 34 ComplexGenerics( Generic2<Generic<A>> g2ga, Lazy<Generic2<Generic<A>>> g2gaLazy, Provider<Generic2<Generic<A>>> g2gaProvider, Generic2<Generic<B>> g2gb, Lazy<Generic2<Generic<B>>> g2gbLazy, Provider<Generic2<Generic<B>>> g2gbProvider, Generic2<A> g2a, Generic<Generic2<A>> gg2a, Generic<Generic2<B>> gg2b)35 @Inject ComplexGenerics( 36 Generic2<Generic<A>> g2ga, 37 Lazy<Generic2<Generic<A>>> g2gaLazy, 38 Provider<Generic2<Generic<A>>> g2gaProvider, 39 Generic2<Generic<B>> g2gb, 40 Lazy<Generic2<Generic<B>>> g2gbLazy, 41 Provider<Generic2<Generic<B>>> g2gbProvider, 42 Generic2<A> g2a, 43 Generic<Generic2<A>> gg2a, 44 Generic<Generic2<B>> gg2b) { 45 this.g2ga = g2ga; 46 this.g2gaLazy = g2gaLazy; 47 this.g2gaProvider = g2gaProvider; 48 this.g2gb = g2gb; 49 this.g2gbLazy = g2gbLazy; 50 this.g2gbProvider = g2gbProvider; 51 this.g2a = g2a; 52 this.gg2a = gg2a; 53 this.gg2b = gg2b; 54 } 55 } 56