• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.multibindings;
18 
19 import dagger.Component;
20 import dagger.MembersInjector;
21 import dagger.functional.multibindings.subpackage.ContributionsModule;
22 import dagger.multibindings.StringKey;
23 import java.util.Collection;
24 import java.util.Map;
25 import java.util.Set;
26 import javax.inject.Named;
27 import javax.inject.Provider;
28 
29 @Component(
30   modules = {MultibindingModule.class, MultibindsModule.class, ContributionsModule.class},
31   dependencies = MultibindingDependency.class
32 )
33 interface MultibindingComponent {
map()34   Map<String, String> map();
mapOfArrays()35   Map<String, String[]> mapOfArrays();
mapOfProviders()36   Map<String, Provider<String>> mapOfProviders();
mapKeys()37   Set<String> mapKeys();
mapValues()38   Collection<String> mapValues();
set()39   Set<Integer> set();
nestedKeyMap()40   Map<NestedAnnotationContainer.NestedWrappedKey, String> nestedKeyMap();
numberClassKeyMap()41   Map<Class<? extends Number>, String> numberClassKeyMap();
classKeyMap()42   Map<Class<?>, String> classKeyMap();
longKeyMap()43   Map<Long, String> longKeyMap();
integerKeyMap()44   Map<Integer, String> integerKeyMap();
shortKeyMap()45   Map<Short, String> shortKeyMap();
byteKeyMap()46   Map<Byte, String> byteKeyMap();
booleanKeyMap()47   Map<Boolean, String> booleanKeyMap();
characterKeyMap()48   Map<Character, String> characterKeyMap();
unwrappedAnnotationKeyMap()49   Map<StringKey, String> unwrappedAnnotationKeyMap();
wrappedAnnotationKeyMap()50   Map<WrappedAnnotationKey, String> wrappedAnnotationKeyMap();
complexQualifierStringSet()51   @Named("complexQualifier") Set<String> complexQualifierStringSet();
emptySet()52   Set<Object> emptySet();
53 
54   @Named("complexQualifier")
emptyQualifiedSet()55   Set<Object> emptyQualifiedSet();
56 
emptyMap()57   Map<String, Object> emptyMap();
58 
59   @Named("complexQualifier")
emptyQualifiedMap()60   Map<String, Object> emptyQualifiedMap();
61 
maybeEmptySet()62   Set<CharSequence> maybeEmptySet();
63 
64   @Named("complexQualifier")
maybeEmptyQualifiedSet()65   Set<CharSequence> maybeEmptyQualifiedSet();
66 
maybeEmptyMap()67   Map<String, CharSequence> maybeEmptyMap();
68 
69   @Named("complexQualifier")
maybeEmptyQualifiedMap()70   Map<String, CharSequence> maybeEmptyQualifiedMap();
71 
membersInjectorMap()72   Map<Class<?>, MembersInjector<?>> membersInjectorMap();
73 
membersInjectorSet()74   Set<MembersInjector<?>> membersInjectorSet();
75 }
76