All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.inject.binder.ConstantBindingBuilder Maven / Gradle / Ivy

package com.google.inject.binder;

/**
 * Binds to a constant value.
 */
public interface ConstantBindingBuilder {

    /**
     * Binds constant to the given value.
     */
    void to(String 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(boolean 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(short value);

    /**
     * Binds constant to the given value.
     */
    void to(char value);

    /**
     * Binds constant to the given value.
     */
    void to(byte value);

    /**
     * Binds constant to the given value.
     */
    void to(Class value);

    /**
     * Binds constant to the given value.
     */
    > void to(E value);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy