1 /* 2 * Copyright (C) 2015 Google, Inc. 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 package test; 17 18 import dagger.Component; 19 import dagger.mapkeys.StringKey; 20 import java.util.Collection; 21 import java.util.Map; 22 import java.util.Set; 23 import javax.inject.Named; 24 import javax.inject.Provider; 25 import test.sub.ContributionsModule; 26 27 @Component( 28 modules = { 29 MultibindingModule.class, 30 ContributionsModule.class 31 }, 32 dependencies = MultibindingDependency.class 33 ) 34 interface MultibindingComponent { 35 Map<String, String> map(); 36 Map<String, String[]> mapOfArrays(); 37 Map<String, Provider<String>> mapOfProviders(); 38 Set<String> mapKeys(); 39 Collection<String> mapValues(); 40 Set<Integer> set(); 41 Map<NestedAnnotationContainer.NestedWrappedKey, String> nestedKeyMap(); 42 Map<Class<? extends Number>, String> numberClassKeyMap(); 43 Map<Class<?>, String> classKeyMap(); 44 Map<Long, String> longKeyMap(); 45 Map<Integer, String> integerKeyMap(); 46 Map<Short, String> shortKeyMap(); 47 Map<Byte, String> byteKeyMap(); 48 Map<Boolean, String> booleanKeyMap(); 49 Map<Character, String> characterKeyMap(); 50 Map<StringKey, String> unwrappedAnnotationKeyMap(); 51 Map<WrappedAnnotationKey, String> wrappedAnnotationKeyMap(); 52 @Named("complexQualifier") Set<String> complexQualifierStringSet(); 53 } 54