Class Injectors

    • Method Detail

      • cast

        public static <T> Injector<Object> cast​(Injector<T> injector,
                                                Class<T> type)
        Deprecated.
        Construct a casting injector.
        Type Parameters:
        T - the type of the injected value
        Parameters:
        injector - an injector of any type
        type - a class of the injected type
        Returns:
        an Injector which implements Injector<Object>