diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2014-05-07 22:18:44 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2014-05-07 22:18:44 -0400 |
commit | 5748883e16437b3612e8fe92a8819064ed3acd2c (patch) | |
tree | c4190340490500dc455f299340857a61046987ab /sangria-listbinder/src/main/java/com | |
parent | fffdcb6e54bc56135ceb02922a7123ea04fb05a2 (diff) | |
download | sangria-5748883e16437b3612e8fe92a8819064ed3acd2c.tar.xz |
listbinder: Escape angle brackets in JavaDoc.
Diffstat (limited to 'sangria-listbinder/src/main/java/com')
-rw-r--r-- | sangria-listbinder/src/main/java/com/tavianator/sangria/listbinder/ListBinder.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sangria-listbinder/src/main/java/com/tavianator/sangria/listbinder/ListBinder.java b/sangria-listbinder/src/main/java/com/tavianator/sangria/listbinder/ListBinder.java index c28d758..d813b7a 100644 --- a/sangria-listbinder/src/main/java/com/tavianator/sangria/listbinder/ListBinder.java +++ b/sangria-listbinder/src/main/java/com/tavianator/sangria/listbinder/ListBinder.java @@ -53,28 +53,28 @@ import com.tavianator.sangria.core.UniqueAnnotations; * </p> * * <pre> - * ListBinder<String> listBinder = ListBinder.build(binder(), String.class) + * ListBinder<String> listBinder = ListBinder.build(binder(), String.class) * .withDefaultPriority(); * listBinder.addBinding().toInstance("a"); * listBinder.addBinding().toInstance("b"); * </pre> * * <p> - * This will create a binding for a {@code List<String>}, which contains {@code "a"} followed by {@code "b"}. It also - * creates a binding for {@code List<Provider<String>>} — this may be useful in more advanced cases to allow list - * elements to be lazily loaded. + * This will create a binding for a {@code List<String>}, which contains {@code "a"} followed by {@code "b"}. It + * also creates a binding for {@code List<Provider<String>>} — this may be useful in more advanced + * cases to allow list elements to be lazily loaded. * </p> * * <p>To add an annotation to the list binding, simply write this:</p> * * <pre> - * ListBinder<String> listBinder = ListBinder.build(binder(), String.class) + * ListBinder<String> listBinder = ListBinder.build(binder(), String.class) * .annotatedWith(Names.named("name")) * .withDefaultPriority(); * </pre> * * <p> - * and the created binding will be {@code @Named("name") List<String>} instead. + * and the created binding will be {@code @Named("name") List<String>} instead. * </p> * * <p> @@ -84,13 +84,13 @@ import com.tavianator.sangria.core.UniqueAnnotations; * * <pre> * // In some module - * ListBinder<String> listBinder1 = ListBinder.build(binder(), String.class) + * ListBinder<String> listBinder1 = ListBinder.build(binder(), String.class) * .withPriority(0); * listBinder1.addBinding().toInstance("a"); * listBinder1.addBinding().toInstance("b"); * * // ... some other module - * ListBinder<String> listBinder2 = ListBinder.build(binder(), String.class) + * ListBinder<String> listBinder2 = ListBinder.build(binder(), String.class) * .withPriority(1); * listBinder2.addBinding().toInstance("c"); * listBinder2.addBinding().toInstance("d"); @@ -266,7 +266,7 @@ public class ListBinder<T> { } /** - * Provider implementation for {@code List<Provider<T>>}. + * Provider implementation for {@code List<Provider<T>>}. */ private static class ListOfProvidersProvider<T> implements Provider<List<Provider<T>>> { private final Key<Set<ListElement<T>>> setKey; @@ -355,7 +355,7 @@ public class ListBinder<T> { } /** - * Provider implementation for {@code List<T>}, in terms of {@code List<Provider<T>>}. + * Provider implementation for {@code List<T>}, in terms of {@code List<Provider<T>>}. */ private static class ListOfProvidersAdapter<T> implements Provider<List<T>> { private final Key<List<Provider<T>>> providerListKey; |