Package com.google.inject.binder
Interface ConstantBindingBuilder
-
public interface ConstantBindingBuilderBinds to a constant value.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidto(boolean value)Binds constant to the given value.voidto(byte value)Binds constant to the given value.voidto(char value)Binds constant to the given value.voidto(double value)Binds constant to the given value.voidto(float value)Binds constant to the given value.voidto(int value)Binds constant to the given value.voidto(long value)Binds constant to the given value.voidto(short value)Binds constant to the given value.<E extends Enum<E>>
voidto(E value)Binds constant to the given value.voidto(Class<?> value)Binds constant to the given value.voidto(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.
-
-