Package com.google.inject.binder
Interface ConstantBindingBuilder
-
- All Known Implementing Classes:
ConstantBindingBuilderImpl
public interface ConstantBindingBuilder
Binds to a constant value.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
to(boolean value)
Binds constant to the given value.void
to(byte value)
Binds constant to the given value.void
to(char value)
Binds constant to the given value.void
to(double value)
Binds constant to the given value.void
to(float value)
Binds constant to the given value.void
to(int value)
Binds constant to the given value.void
to(long value)
Binds constant to the given value.void
to(short value)
Binds constant to the given value.<E extends Enum<E>>
voidto(E value)
Binds constant to the given value.void
to(Class<?> value)
Binds constant to the given value.void
to(String value)
Binds constant to the given value.
-
-
-
Method Detail
-
to
void to(String value)
Binds constant to the given value.
-
to
void to(int value)
Binds constant to the given value.
-
to
void to(long value)
Binds constant to the given value.
-
to
void to(boolean value)
Binds constant to the given value.
-
to
void to(double value)
Binds constant to the given value.
-
to
void to(float value)
Binds constant to the given value.
-
to
void to(short value)
Binds constant to the given value.
-
to
void to(char value)
Binds constant to the given value.
-
to
void to(byte value)
Binds constant to the given value.- Since:
- 3.0
-
to
void to(Class<?> value)
Binds constant to the given value.
-
to
<E extends Enum<E>> void to(E value)
Binds constant to the given value.
-
-