• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java StringKey类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中dagger.multibindings.StringKey的典型用法代码示例。如果您正苦于以下问题:Java StringKey类的具体用法?Java StringKey怎么用?Java StringKey使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

StringKey类属于dagger.multibindings包,在下文中一共展示了StringKey类的40个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: providesScalarInputDiscoverer

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Provides
@IntoMap
@StringKey(ScalarInputSpec.TYPE)
public SensorDiscoverer providesScalarInputDiscoverer(Context context,
        UsageTracker usageTracker) {
    return new ScalarInputDiscoverer(new ScalarSensorServiceFinder(context), context,
            usageTracker);
}
 

开发者ID:google,
项目名称:science-journal,
代码行数:9,
代码来源:ScalarInputDiscoveryModule.java

示例2: ingredientsContent

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Provides
@IntoMap
@StringKey(INGREDIENTS_CONTENT)
@Reusable
public static FragmentLocation ingredientsContent(IngredientsFragmentComponentFactory component) {
    return new FragmentLocation.Builder<>(IngredientsFragment.class, INGREDIENTS_CONTENT)
            .setViewRootId(R.id.ingredients_content_frame)
            .setInjector(fragment -> fragment.setComponentFactory(component))
            .build();
}
 

开发者ID:st1hy,
项目名称:Red-Calorie,
代码行数:11,
代码来源:IngredientsActivityModule.java

示例3: graphFragment

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Provides
@IntoMap
@StringKey(GRAPH_CONTENT_TAG)
@Reusable
public static FragmentLocation graphFragment(GraphComponentFactory componentFactory) {
    return new FragmentLocation.Builder<>(GraphFragment.class, GRAPH_CONTENT_TAG)
            .setViewRootId(R.id.overview_content_root)
            .setInjector(fragment -> fragment.setComponentFactory(componentFactory))
            .build();
}
 

开发者ID:st1hy,
项目名称:Red-Calorie,
代码行数:11,
代码来源:OverviewActivityModule.java

示例4: addIngredientFragment

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Provides
@IntoMap
@StringKey(CONTENT_TAG)
@Reusable
public static FragmentLocation addIngredientFragment(AddIngredientFragmentComponentFactory componentFactory) {
    return new FragmentLocation.Builder<>(AddIngredientFragment.class, CONTENT_TAG)
            .setViewRootId(R.id.add_ingredient_content_frame)
            .setInjector(fragment -> fragment.setComponentFactory(componentFactory))
            .build();
}
 

开发者ID:st1hy,
项目名称:Red-Calorie,
代码行数:11,
代码来源:AddIngredientModule.java

示例5: mealDetailFragmentLocation

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Provides
@Reusable
@IntoMap
@StringKey(FRAGMENT_TAG)
public static FragmentLocation mealDetailFragmentLocation(MealDetailActivityComponent component) {
    return new FragmentLocation.Builder<>(MealDetailFragment.class, FRAGMENT_TAG)
            .setViewRootId(R.id.meal_detail_content_root)
            .setInjector(fragment -> fragment.setComponentFactory(component))
            .build();
}
 

开发者ID:st1hy,
项目名称:Red-Calorie,
代码行数:11,
代码来源:MealDetailActivityModel.java

示例6: addMealContent

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Provides
@IntoMap
@StringKey(ADD_MEAL_CONTENT)
@Reusable
public static FragmentLocation addMealContent(AddMealActivityComponent component) {
    return new FragmentLocation.Builder<>(AddMealFragment.class, ADD_MEAL_CONTENT)
            .setViewRootId(R.id.add_meal_content_frame)
            .setInjector(fragment -> fragment.setComponentFactory(component))
            .build();
}
 

开发者ID:st1hy,
项目名称:Red-Calorie,
代码行数:11,
代码来源:AddMealActivityModule.java

示例7: settingsFragment

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Provides
@IntoMap
@StringKey(SETTINGS_CONTENT_TAG)
@Reusable
public static FragmentLocation settingsFragment(SettingsFragmentComponentFactory factory) {
    return new FragmentLocation.Builder<>(SettingsFragment.class, SETTINGS_CONTENT_TAG)
            .setViewRootId(R.id.settings_content_root)
            .setInjector(fragment -> fragment.setComponentFactory(factory))
            .build();
}
 

开发者ID:st1hy,
项目名称:Red-Calorie,
代码行数:11,
代码来源:SettingsActivityModule.java

示例8: ingredientDetailContent

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Provides
@IntoMap
@StringKey(INGREDIENT_DETAIL_CONTENT)
@Reusable
public static FragmentLocation ingredientDetailContent(IngredientDetailComponent component) {
    return new FragmentLocation.Builder<>(IngredientDetailFragment.class, INGREDIENT_DETAIL_CONTENT)
            .setViewRootId(R.id.ingredient_detail_content)
            .setInjector(fragment -> fragment.setComponentFactory(component))
            .build();
}
 

开发者ID:st1hy,
项目名称:Red-Calorie,
代码行数:11,
代码来源:IngredientDetailModule.java

示例9: tagsContent

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Provides
@IntoMap
@StringKey(TAGS_CONTENT_TAG)
@Reusable
public static FragmentLocation tagsContent(TagsFragmentComponentFactory componentFactory) {
    return new FragmentLocation.Builder<>(TagsFragment.class, TAGS_CONTENT_TAG)
            .setViewRootId(R.id.tags_content_frame)
            .setInjector(fragment -> fragment.setComponentFactory(componentFactory))
            .build();
}
 

开发者ID:st1hy,
项目名称:Red-Calorie,
代码行数:11,
代码来源:TagsActivityModule.java

示例10: intentHandlerClass

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Provides
@IntoMap
@StringKey(PermissionFragment.TAG)
@Reusable
public static FragmentLocation intentHandlerClass() {
    return new FragmentLocation.Builder<>(PermissionFragment.class, PermissionFragment.TAG).build();
}
 

开发者ID:st1hy,
项目名称:Red-Calorie,
代码行数:8,
代码来源:PermissionModule.java

示例11: description

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Override
@Provides
@IntoMap
@StringKey(COMMAND)
public String description() {
  return "Performs a single configured migration";
}
 

开发者ID:google,
项目名称:MOE,
代码行数:8,
代码来源:OneMigrationDirective.java

示例12: description

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Override
@Provides
@IntoMap
@StringKey(COMMAND)
public String description() {
  return "Perform a one-directional merge from a branch onto a target repository.";
}
 

开发者ID:google,
项目名称:MOE,
代码行数:8,
代码来源:MigrateBranchDirective.java

示例13: description

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Override
@Provides
@IntoMap
@StringKey(COMMAND)
public String description() {
  return "Migrates the branch underlying a github pull request into a configured repository";
}
 

开发者ID:google,
项目名称:MOE,
代码行数:8,
代码来源:GithubPullDirective.java

示例14: description

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Override
@Provides
@IntoMap
@StringKey(COMMAND)
public String description() {
  return "Finds and prints the unmigrated revisions for a named migration configuration";
}
 

开发者ID:google,
项目名称:MOE,
代码行数:8,
代码来源:DetermineMigrationsDirective.java

示例15: description

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Override
@Provides
@IntoMap
@StringKey(COMMAND)
public String description() {
  return "Updates the database";
}
 

开发者ID:google,
项目名称:MOE,
代码行数:8,
代码来源:BookkeepingDirective.java

示例16: description

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Override
@Provides
@IntoMap
@StringKey(COMMAND)
public String description() {
  return "Creates a codebase from a codebase expression";
}
 

开发者ID:google,
项目名称:MOE,
代码行数:8,
代码来源:CreateCodebaseDirective.java

示例17: description

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Override
@Provides
@IntoMap
@StringKey(COMMAND)
public String description() {
  return "Finds the highest revision in a source control repository";
}
 

开发者ID:google,
项目名称:MOE,
代码行数:8,
代码来源:HighestRevisionDirective.java

示例18: description

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Override
@Provides
@IntoMap
@StringKey(COMMAND)
public String description() {
  return "Merges three codebases into a new codebase";
}
 

开发者ID:google,
项目名称:MOE,
代码行数:8,
代码来源:MergeCodebasesDirective.java

示例19: description

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Override
@Provides
@IntoMap
@StringKey(COMMAND)
public String description() {
  return "Consolidates the metadata for a set of revisions";
}
 

开发者ID:google,
项目名称:MOE,
代码行数:8,
代码来源:DetermineMetadataDirective.java

示例20: description

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Override
@Provides
@IntoMap
@StringKey(COMMAND)
public String description() {
  return "Creates a (pending) change";
}
 

开发者ID:google,
项目名称:MOE,
代码行数:8,
代码来源:ChangeDirective.java

示例21: description

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Override
@Provides
@IntoMap
@StringKey(COMMAND)
public String description() {
  return "Finds the last known equivalence between two repositories";
}
 

开发者ID:google,
项目名称:MOE,
代码行数:8,
代码来源:LastEquivalenceDirective.java

示例22: description

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Override
@Provides
@IntoMap
@StringKey(COMMAND)
public String description() {
  return "Notes a new equivalence in the database file.";
}
 

开发者ID:google,
项目名称:MOE,
代码行数:8,
代码来源:NoteEquivalenceDirective.java

示例23: description

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Override
@Provides
@IntoMap
@StringKey(COMMAND)
public String description() {
  return "Checks that the project's configuration is valid";
}
 

开发者ID:google,
项目名称:MOE,
代码行数:8,
代码来源:CheckConfigDirective.java

示例24: description

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Override
@Provides
@IntoMap
@StringKey(COMMAND)
public String description() {
  return "Finds revisions in one repository that are equivalent to a given revision in another";
}
 

开发者ID:google,
项目名称:MOE,
代码行数:8,
代码来源:FindEquivalenceDirective.java

示例25: description

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Override
@Provides
@IntoMap
@StringKey(COMMAND)
public String description() {
  return "Updates database and performs any configured migrations that have pending commits";
}
 

开发者ID:google,
项目名称:MOE,
代码行数:8,
代码来源:MagicDirective.java

示例26: description

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Override
@Provides
@IntoMap
@StringKey(COMMAND)
public String description() {
  return "Prints the diff output between two codebase expressions";
}
 

开发者ID:google,
项目名称:MOE,
代码行数:8,
代码来源:DiffCodebasesDirective.java

示例27: AnswerResponseHandler

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Provides
@Singleton
@IntoMap
@StringKey(Signals.ANSWER_RESPONSE_HANDLER)
static SignalHandler AnswerResponseHandler() {
    return new AnswerResponseHandler();
}
 

开发者ID:mslosarz,
项目名称:nextrtc-signaling-server,
代码行数:8,
代码来源:NextRTCSignals.java

示例28: CandidateHandler

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Provides
@Singleton
@IntoMap
@StringKey(Signals.CANDIDATE_HANDLER)
static SignalHandler CandidateHandler() {
    return new CandidateHandler();
}
 

开发者ID:mslosarz,
项目名称:nextrtc-signaling-server,
代码行数:8,
代码来源:NextRTCSignals.java

示例29: CreateConversationEntry

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Provides
@Singleton
@IntoMap
@StringKey(Signals.CREATE_HANDLER)
static SignalHandler CreateConversationEntry(CreateConversation conversation) {
    return conversation;
}
 

开发者ID:mslosarz,
项目名称:nextrtc-signaling-server,
代码行数:8,
代码来源:NextRTCSignals.java

示例30: JoinConversation

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Provides
@Singleton
@IntoMap
@StringKey(Signals.JOIN_HANDLER)
static SignalHandler JoinConversation(ConversationRepository conversations,
                                      CreateConversation create,
                                      NextRTCProperties properties) {
    return new JoinConversation(conversations, create, properties);
}
 

开发者ID:mslosarz,
项目名称:nextrtc-signaling-server,
代码行数:10,
代码来源:NextRTCSignals.java

示例31: LeftConversation

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Provides
@Singleton
@IntoMap
@StringKey(Signals.LEFT_HANDLER)
static SignalHandler LeftConversation(NextRTCEventBus eventBus,
                                      ConversationRepository conversations) {
    return new LeftConversation(eventBus, conversations);
}
 

开发者ID:mslosarz,
项目名称:nextrtc-signaling-server,
代码行数:9,
代码来源:NextRTCSignals.java

示例32: OfferResponseHandler

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Provides
@Singleton
@IntoMap
@StringKey(Signals.OFFER_RESPONSE_HANDLER)
static SignalHandler OfferResponseHandler() {
    return new OfferResponseHandler();
}
 

开发者ID:mslosarz,
项目名称:nextrtc-signaling-server,
代码行数:8,
代码来源:NextRTCSignals.java

示例33: TextMessage

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Provides
@Singleton
@IntoMap
@StringKey(Signals.TEXT_HANDLER)
static SignalHandler TextMessage(NextRTCEventBus eventBus,
                                 MessageSender sender) {
    return new TextMessage(eventBus, sender);
}
 

开发者ID:mslosarz,
项目名称:nextrtc-signaling-server,
代码行数:9,
代码来源:NextRTCSignals.java

示例34: providesDeviceDiscoverer

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Provides
@IntoMap
@StringKey(InputDeviceSpec.TYPE)
public SensorDiscoverer providesDeviceDiscoverer(Context context) {
    return InputDeviceSpec.DISCOVERER;
}
 

开发者ID:google,
项目名称:science-journal,
代码行数:7,
代码来源:InputDeviceModule.java

示例35: providesNativeDiscoverer

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Provides
@IntoMap
@StringKey(BleSensorSpec.TYPE)
public SensorDiscoverer providesNativeDiscoverer(Context context) {
    return new NativeBleDiscoverer(context);
}
 

开发者ID:google,
项目名称:science-journal,
代码行数:7,
代码来源:NativeBleDiscovererModule.java

示例36: intentHandlerClass

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Provides
@IntoMap
@StringKey(IntentHandlerFragment.TAG)
public static FragmentLocation intentHandlerClass() {
    return new FragmentLocation.Builder<>(IntentHandlerFragment.class, IntentHandlerFragment.TAG).build();
}
 

开发者ID:st1hy,
项目名称:Red-Calorie,
代码行数:7,
代码来源:ActivityLauncherModule.java

示例37: defaultMealNameEnginePL

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Binds
@IntoMap
@StringKey("pl")
abstract DefaultNameSelector defaultMealNameEnginePL(DefaultNamePl engine);
 

开发者ID:st1hy,
项目名称:Red-Calorie,
代码行数:5,
代码来源:DefaultMealNameModule.java

示例38: defaultMealNameEngineEN

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Binds
@IntoMap
@StringKey("en")
abstract DefaultNameSelector defaultMealNameEngineEN(DefaultNameEn engine);
 

开发者ID:st1hy,
项目名称:Red-Calorie,
代码行数:5,
代码来源:DefaultMealNameModule.java

示例39: provideEppMetricsSchema

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Provides
@IntoMap
@StringKey(EppMetric.TABLE_ID)
static ImmutableList<TableFieldSchema> provideEppMetricsSchema() {
  return EppMetric.SCHEMA_FIELDS;
}
 

开发者ID:google,
项目名称:nomulus,
代码行数:7,
代码来源:WhiteboxModule.java

示例40: provideStaticPremiumList

点赞 2

import dagger.multibindings.StringKey; //导入依赖的package包/类
@Provides @IntoMap
@StringKey(StaticPremiumListPricingEngine.NAME)
static PremiumPricingEngine provideStaticPremiumList(StaticPremiumListPricingEngine engine) {
  return engine;
}
 

开发者ID:google,
项目名称:nomulus,
代码行数:6,
代码来源:PricingModule.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)