Merge "Allow to build api with Java 8"
This commit is contained in:
@@ -67,7 +67,9 @@ public class DynamicItem<T> {
|
||||
* <p>
|
||||
* Items must be defined in a Guice module before they can be bound:
|
||||
* <pre>
|
||||
* {@code
|
||||
* DynamicSet.itemOf(binder(), new TypeLiteral<Thing<Foo>>() {});
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* @param binder a new binder created in the module.
|
||||
|
@@ -67,10 +67,12 @@ public abstract class DynamicMap<T> implements Iterable<DynamicMap.Entry<T>> {
|
||||
* Maps must be defined in a Guice module before they can be bound:
|
||||
*
|
||||
* <pre>
|
||||
* {@code
|
||||
* DynamicMap.mapOf(binder(), new TypeLiteral<Thing<Bar>>(){});
|
||||
* bind(new TypeLiteral<Thing<Bar>>() {})
|
||||
* .annotatedWith(Exports.named("foo"))
|
||||
* .to(Impl.class);
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* @param binder a new binder created in the module.
|
||||
|
@@ -61,7 +61,9 @@ public class DynamicSet<T> implements Iterable<T> {
|
||||
* <p>
|
||||
* Sets must be defined in a Guice module before they can be bound:
|
||||
* <pre>
|
||||
* {@code
|
||||
* DynamicSet.setOf(binder(), new TypeLiteral<Thing<Foo>>() {});
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
* @param binder a new binder created in the module.
|
||||
|
Reference in New Issue
Block a user