
com.google.caliper.runner.instrument.DaggerInstrumentComponent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of caliper-runner Show documentation
Show all versions of caliper-runner Show documentation
Caliper's command line benchmark runner tool.
The newest version!
// Generated by Dagger (https://google.github.io/dagger).
package com.google.caliper.runner.instrument;
import com.google.common.collect.ImmutableMap;
import com.google.errorprone.annotations.CanIgnoreReturnValue;
import dagger.internal.Preconditions;
public final class DaggerInstrumentComponent implements InstrumentComponent {
private final InstrumentInjectorModule instrumentInjectorModule;
private DaggerInstrumentComponent(InstrumentInjectorModule instrumentInjectorModuleParam) {
this.instrumentInjectorModule = instrumentInjectorModuleParam;
}
public static Builder builder() {
return new Builder();
}
private ImmutableMap getInstrumentOptionsImmutableMapOfStringAndString() {
return InstrumentInjectorModule_ProvideInstrumentOptionsFactory.provideInstrumentOptions(
InstrumentInjectorModule_ProvideInstrumentConfigFactory.provideInstrumentConfig(
instrumentInjectorModule));
}
@Override
public void injectInstrument(Instrument instrument) {
injectInstrument2(instrument);
}
@CanIgnoreReturnValue
private Instrument injectInstrument2(Instrument instance) {
Instrument_MembersInjector.injectSetOptions(
instance, getInstrumentOptionsImmutableMapOfStringAndString());
Instrument_MembersInjector.injectSetInstrumentName(
instance,
InstrumentInjectorModule_ProvideInstrumentNameFactory.provideInstrumentName(
instrumentInjectorModule));
return instance;
}
public static final class Builder {
private InstrumentInjectorModule instrumentInjectorModule;
private Builder() {}
public Builder instrumentInjectorModule(InstrumentInjectorModule instrumentInjectorModule) {
this.instrumentInjectorModule = Preconditions.checkNotNull(instrumentInjectorModule);
return this;
}
public InstrumentComponent build() {
Preconditions.checkBuilderRequirement(
instrumentInjectorModule, InstrumentInjectorModule.class);
return new DaggerInstrumentComponent(instrumentInjectorModule);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy