Generated by
JDiff

com.google.inject.util Documentation Differences

This file contains all the changes in documentation in the package com.google.inject.util as colored differences. Deletions are shown like this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.

Class Modules, OverriddenModuleBuilder override(Iterable<Module>)

Returns a builder that creates a module that overlays override modules over the given given modules. If a key is bound in both sets of modules, only the binding from the override modules modules is kept. If a single PrivateModule is supplied or all elements are from from a single PrivateBinder, then this will overwrite the private bindings. Otherwise, private bindings willwill not be overwritten unless they are exposed. This can be used to replace the bindings of aa production module with test bindings:
 Module functionalTestModule
     = Modules.override(getProductionModules()).with(getTestModules());
 

Prefer to write smaller modules that can be reused and tested without overrides. @param modules the modules whose bindings are open to be overridden

Class Modules, OverriddenModuleBuilder override(Module[])

Returns a builder that creates a module that overlays override modules over the given given modules. If a key is bound in both sets of modules, only the binding from the override modules modules is kept. If a single PrivateModule is supplied or all elements are from from a single PrivateBinder, then this will overwrite the private bindings. Otherwise, private bindings willwill not be overwritten unless they are exposed. This can be used to replace the bindings of aa production module with test bindings:
 Module functionalTestModule
     = Modules.override(new ProductionModule()).with(new TestModule());
 

Prefer to write smaller modules that can be reused and tested without overrides. @param modules the modules whose bindings are open to be overridden


Class Providers

Static utility methods for creating and working with instances of of Provider. @author Kevin Bourrillion (kevinb9n@gmail.com) @since 2.0
Class Providers, Provider<T> guicify(Provider<T>)

Returns a Guice-friendly {@code com.google.inject.Provider} for the given given JSR-330 {@codecode javax.inject.Provider}. The converse method is unnecessary, since Guice providers directlydirectly implement the JSR-330 interface. @since 3.0
Class Providers, Provider<T> of(T)

Returns a provider which always provides {@code instance}. This should not not be necessary to useuse in your application, but is helpful for several types types of unit tests. @param instance the instance that should always be provided. This is also also permitted to be null, to enable aggressive testing, although in real real life a Guice-supplied Provider will nevernever return null.

Class Types, GenericArrayType arrayOf(Type)

Returns an array type whose elements are all instances of of {@code componentType}. @return a serializable generic array type.
Class Types, ParameterizedType collectionOf(Type)

Returns a type modelling a Collection whose elements are of type type {@code elementType}. @return a serializable parameterized type.
Class Types, Type javaxProviderOf(Type)

Returns a type modelling a javax.inject.Provider that provides elements of type type {@codecode elementType}. @return a serializable parameterized type.
Class Types, ParameterizedType listOf(Type)

Returns a type modelling a List whose elements are of type type {@code elementType}. @return a serializable parameterized type.
Class Types, ParameterizedType mapOf(Type, Type)

Returns a type modelling a Map whose keys are of type type {@code keyType} and whose valuesvalues are of type {@code valueType}. @return a serializable parameterized type.
Class Types, ParameterizedType newParameterizedType(Type, Type[])

Returns a new parameterized type, applying {@code typeArguments} to to {@code rawType}. TheThe returned type does not have an owner type. @return a serializable parameterized type.
Class Types, ParameterizedType newParameterizedTypeWithOwner(Type, Type, Type[])

Returns a new parameterized type, applying {@code typeArguments} to to {@code rawType} andand enclosed by {@code ownerType}. @return a serializable parameterized type.
Class Types, ParameterizedType providerOf(Type)

Returns a type modelling a Provider that provides elements of type type {@code elementType}. @return a serializable parameterized type.
Class Types, ParameterizedType setOf(Type)

Returns a type modelling a Set whose elements are of type type {@code elementType}. @return a serializable parameterized type.
Class Types, WildcardType subtypeOf(Type)

Returns a type that represents an unknown type that extends {@code bound}. For example, ifif {@code bound} is {@code CharSequence.class}, this returns returns {@code ? extends CharSequence}. IfIf {@code bound} is {@code Object.class}, this returns {@code ?}, which is shorthand for {@code ? extends Object}.
Class Types, WildcardType supertypeOf(Type)

Returns a type that represents an unknown supertype of {@code bound}. For For example, if {@codecode bound} is {@code String.class}, this returns {@code ? super String}.