Skip to content

Commit

Permalink
Fix syntax of examples in Javadoc.
Browse files Browse the repository at this point in the history
Signed-off-by: Nikhil Nanivadekar <nikhil.nanivadekar@gs.com>
  • Loading branch information
nikhilnanivadekar committed Feb 4, 2016
1 parent a10a72b commit c114bea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ <V, R extends Collection<V>> R collectIf(
* Person person =
* people.detect(new Predicate&lt;Person&gt;()
* {
* public boolean value(Person person)
* public boolean accept(Person person)
* {
* return person.getFirstName().equals("John") && person.getLastName().equals("Smith");
* }
Expand All @@ -1175,7 +1175,7 @@ <V, R extends Collection<V>> R collectIf(
* Person person =
* people.detectWith(new Predicate2&lt;Person, String&gt;()
* {
* public boolean value(Person person, String fullName)
* public boolean accept(Person person, String fullName)
* {
* return person.getFullName().equals(fullName);
* }
Expand Down Expand Up @@ -1653,7 +1653,7 @@ <NK, NV> MutableSortedMap<NK, NV> toSortedMap(
* Multimap&lt;String, Person&gt; peopleByLastName =
* people.groupBy(new Function&lt;Person, String&gt;()
* {
* public String value(Person person)
* public String valueOf(Person person)
* {
* return person.getLastName();
* }
Expand All @@ -1679,7 +1679,7 @@ <NK, NV> MutableSortedMap<NK, NV> toSortedMap(
* FastListMultimap&lt;String, Person&gt; peopleByLastName =
* people.groupBy(new Function&lt;Person, String&gt;()
* {
* public String value(Person person)
* public String valueOf(Person person)
* {
* return person.getLastName();
* }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ else if (iterable != null)
* Collection&lt;Person&gt; selected =
* Iterate.<b>select</b>(people, new Predicate&lt;Person&gt;()
* {
* public boolean value(Person person)
* public boolean accept(Person person)
* {
* return person.getAddress().getCity().equals("Metuchen");
* }
Expand Down Expand Up @@ -400,7 +400,7 @@ public static <T, IV> Twin<MutableList<T>> selectAndRejectWith(
* PartitionIterable&lt;Person&gt; newYorkersAndNonNewYorkers =
* Iterate.<b>partition</b>(people, new Predicate&lt;Person&gt;()
* {
* public boolean value(Person person)
* public boolean accept(Person person)
* {
* return person.getAddress().getState().getName().equals("New York");
* }
Expand Down Expand Up @@ -442,7 +442,7 @@ public static <T> PartitionIterable<T> partition(Iterable<T> iterable, Predicate
* PartitionIterable&lt;Person&gt; newYorkersAndNonNewYorkers =
* Iterate.<b>partitionWith</b>(people, new Predicate&lt;Person, String&gt;()
* {
* public boolean value(Person person, String state)
* public boolean accept(Person person, String state)
* {
* return person.getAddress().getState().getName().equals(state);
* }
Expand Down Expand Up @@ -1172,7 +1172,7 @@ public static <T> boolean removeAllIterable(Iterable<? extends T> iterable, Coll
* Iterate.<b>collect</b>(people,
* new Function&lt;Person, String&gt;()
* {
* public String value(Person person)
* public String valueOf(Person person)
* {
* return person.getFirstName() + " " + person.getLastName();
* }
Expand Down Expand Up @@ -1227,7 +1227,7 @@ public static <T, V> Collection<V> collect(
* Iterate.<b>collect</b>(people,
* new Function&lt;Person, String&gt;()
* {
* public String value(Person person)
* public String valueOf(Person person)
* {
* return person.getFirstName() + " " + person.getLastName();
* }
Expand Down Expand Up @@ -2249,7 +2249,7 @@ public static <T> T getLast(Iterable<T> iterable)
* <pre>
* Person person = Iterate.<b>detect</b>(people, new Predicate&lt;Person&gt;()
* {
* public boolean value(Person person)
* public boolean accept(Person person)
* {
* return person.getFirstName().equals("John") && person.getLastName().equals("Smith");
* }
Expand Down Expand Up @@ -2290,7 +2290,7 @@ public static <T> T detect(Iterable<T> iterable, Predicate<? super T> predicate)
* <pre>
* Person person = Iterate.<b>detectWith</b>(people, new Predicate2&lt;Person, String&gt;()
* {
* public boolean value(Person person, String fullName)
* public boolean accept(Person person, String fullName)
* {
* return person.getFullName().equals(fullName);
* }
Expand Down

0 comments on commit c114bea

Please sign in to comment.