• Home
  • Raw
  • Download

Lines Matching full:provides

20 import dagger.Provides
36 @Provides
41 @Provides @IntoMap @StringKey("bar") fun provideBarKey(): String = "bar value"
43 @Provides
50 @Provides
55 @Provides @IntoSet fun provideFiveToSet(): Int = 5
57 @Provides @IntoSet fun provideSixToSet(): Int = 6
59 @Provides @ElementsIntoSet fun provideElementsIntoSet(): Set<Int> = setOf(-101, -102)
61 @Provides
65 @Provides fun provideMapValues(map: Map<String, String>): Collection<String> = map.values
67 @Provides
72 @Provides @IntoMap @NestedWrappedKey(java.lang.Long::class) fun valueForLong(): String = "long"
74 @Provides
79 @Provides @IntoMap @ClassKey(java.lang.Long::class) fun valueForClassLong(): String = "long"
81 @Provides
86 @Provides
91 @Provides @IntoMap @LongKey(100) fun valueFor100Long(): String = "100 long"
93 @Provides @IntoMap @IntKey(100) fun valueFor100Int(): String = "100 int"
95 @Provides @IntoMap @ShortKey(100) fun valueFor100Short(): String = "100 short"
97 @Provides @IntoMap @ByteKey(100) fun valueFor100Byte(): String = "100 byte"
99 @Provides @IntoMap @BooleanKey(true) fun valueForTrue(): String = "true"
101 @Provides @IntoMap @CharKey('a') fun valueForA(): String = "a char"
103 @Provides @IntoMap @CharKey('\n') fun valueForNewline(): String = "newline char"
105 @Provides
110 @Provides
120 @Provides @IntoSet @Named("complexQualifier") fun valueForComplexQualifierSet(): String = "foo"
122 @Provides @IntoSet fun setContribution(): CharSequence = "foo"
124 @Provides
129 @Provides @IntoMap @StringKey("key") fun mapContribution(): CharSequence = "foo value"
131 @Provides