Skip to content

Commit b4346ec

Browse files
committed
Javadoc: English, not Latin
1 parent baf26fa commit b4346ec

22 files changed

+39
-39
lines changed

src/main/java/org/apache/commons/collections4/CollectionUtils.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public int hashCode() {
168168
}
169169

170170
/**
171-
* Helper class for set-related operations, e.g. union, subtract, intersection.
171+
* Helper class for set-related operations, for example union, subtract, intersection.
172172
* @param <O> the element type
173173
*/
174174
private static final class SetOperationCardinalityHelper<O> extends CardinalityHelper<O> implements Iterable<O> {
@@ -1216,7 +1216,7 @@ public static boolean isEqualCollection(final Collection<?> a, final Collection<
12161216
* <p>
12171217
* <strong>Note:</strong> from version 4.1 onwards this method requires the input
12181218
* collections and equator to be of compatible type (using bounded wildcards).
1219-
* Providing incompatible arguments (e.g. by casting to their rawtypes)
1219+
* Providing incompatible arguments (for example by casting to their rawtypes)
12201220
* will result in a {@code ClassCastException} thrown at runtime.
12211221
* </p>
12221222
*
@@ -1404,7 +1404,7 @@ public static int maxSize(final Collection<? extends Object> collection) {
14041404
* <p>
14051405
* NOTE: the number of permutations of a given collection is equal to n!, where
14061406
* n is the size of the collection. Thus, the resulting collection will become
1407-
* <strong>very</strong> large for collections &gt; 10 (e.g. 10! = 3628800, 15! = 1307674368000).
1407+
* <strong>very</strong> large for collections &gt; 10 (for example 10! = 3628800, 15! = 1307674368000).
14081408
* </p>
14091409
* <p>
14101410
* For larger collections it is advised to use a {@link PermutationIterator} to
@@ -1462,7 +1462,7 @@ public static <C> Collection<C> predicatedCollection(final Collection<C> collect
14621462
* This implementation iterates over {@code collection}, checking each element in
14631463
* turn to see if it's contained in {@code remove}. If it's not contained, it's added
14641464
* to the returned list. As a consequence, it is advised to use a collection type for
1465-
* {@code remove} that provides a fast (e.g. O(1)) implementation of
1465+
* {@code remove} that provides a fast (for example O(1)) implementation of
14661466
* {@link Collection#contains(Object)}.
14671467
* </p>
14681468
*
@@ -1600,7 +1600,7 @@ public static <E> Collection<E> removeRange(final Collection<E> input, final int
16001600
* This implementation iterates over {@code collection}, checking each element in
16011601
* turn to see if it's contained in {@code retain}. If it's contained, it's added
16021602
* to the returned list. As a consequence, it is advised to use a collection type for
1603-
* {@code retain} that provides a fast (e.g. O(1)) implementation of
1603+
* {@code retain} that provides a fast (for example O(1)) implementation of
16041604
* {@link Collection#contains(Object)}.
16051605
* </p>
16061606
*

src/main/java/org/apache/commons/collections4/FluentIterable.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
* </p>
3636
* <ul>
3737
* <li>fluent methods which return a new {@code FluentIterable} instance,
38-
* providing a view of the original iterable (e.g. filter(Predicate));
38+
* providing a view of the original iterable (for example filter(Predicate));
3939
* <li>conversion methods which copy the FluentIterable's contents into a
40-
* new collection or array (e.g. toList());
40+
* new collection or array (for example toList());
4141
* <li>utility methods which answer questions about the FluentIterable's
42-
* contents (e.g. size(), anyMatch(Predicate)).
42+
* contents (for example size(), anyMatch(Predicate)).
4343
* <li>
4444
* </ul>
4545
* <p>

src/main/java/org/apache/commons/collections4/ListUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ public static <E> List<E> predicatedList(final List<E> list, final Predicate<E>
536536
* This implementation iterates over {@code collection}, checking each element in
537537
* turn to see if it's contained in {@code remove}. If it's not contained, it's added
538538
* to the returned list. As a consequence, it is advised to use a collection type for
539-
* {@code remove} that provides a fast (e.g. O(1)) implementation of
539+
* {@code remove} that provides a fast (for example O(1)) implementation of
540540
* {@link Collection#contains(Object)}.
541541
* </p>
542542
*
@@ -571,7 +571,7 @@ public static <E> List<E> removeAll(final Collection<E> collection, final Collec
571571
* This implementation iterates over {@code collection}, checking each element in
572572
* turn to see if it's contained in {@code retain}. If it's contained, it's added
573573
* to the returned list. As a consequence, it is advised to use a collection type for
574-
* {@code retain} that provides a fast (e.g. O(1)) implementation of
574+
* {@code retain} that provides a fast (for example O(1)) implementation of
575575
* {@link Collection#contains(Object)}.
576576
* </p>
577577
*

src/main/java/org/apache/commons/collections4/MapUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1945,7 +1945,7 @@ public static void verbosePrint(final PrintStream out, final Object label, final
19451945
* given map with nice line breaks. If the debug flag is true, it additionally prints the type of the object value.
19461946
* If the contents of a map include the map itself, then the text <em>(this Map)</em> is printed out. If the
19471947
* contents include a parent container of the map, the text <em>(ancestor[i] Map)</em> is printed, where it actually
1948-
* indicates the number of levels which must be traversed in the sequential list of ancestors (e.g. father,
1948+
* indicates the number of levels which must be traversed in the sequential list of ancestors (for example father,
19491949
* grandfather, great-grandfather, etc.).
19501950
*
19511951
* @param out the stream to print to

src/main/java/org/apache/commons/collections4/MultiValuedMap.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ public interface MultiValuedMap<K, V> {
210210
* @param value the value to add to the collection at the key
211211
* @return true if the map changed as a result of this put operation, or false
212212
* if the map already contained the key-value mapping and the collection
213-
* type does not allow duplicate values, e.g. when using a Set
213+
* type does not allow duplicate values, for example when using a Set
214214
* @throws UnsupportedOperationException if the put operation is not supported by
215-
* this multivalued map, e.g. if it is unmodifiable
215+
* this multivalued map, for example if it is unmodifiable
216216
* @throws NullPointerException if the key or value is null and null is invalid (optional)
217217
* @throws IllegalArgumentException if some aspect of the specified key or value prevents
218218
* it from being stored in this multivalued map

src/main/java/org/apache/commons/collections4/bag/CollectionBag.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public boolean removeAll(final Collection<?> coll) {
189189
* each element in turn to see if it's contained in {@code coll}.
190190
* If it's not contained, it's removed from this bag. As a consequence,
191191
* it is advised to use a collection type for {@code coll} that provides
192-
* a fast (e.g. O(1)) implementation of {@link Collection#contains(Object)}.
192+
* a fast (for example O(1)) implementation of {@link Collection#contains(Object)}.
193193
* </p>
194194
*
195195
* @param coll the collection to retain

src/main/java/org/apache/commons/collections4/bidimap/AbstractDualBidiMap.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public void remove() {
109109
if (!canRemove) {
110110
throw new IllegalStateException("Iterator remove() can only be called once after next()");
111111
}
112-
// store value as remove may change the entry in the decorator (e.g. TreeMap)
112+
// store value as remove may change the entry in the decorator (for example TreeMap)
113113
final V value = last.getValue();
114114
iterator.remove();
115115
parent.reverseMap.remove(value);
@@ -230,7 +230,7 @@ public void remove() {
230230
if (!canRemove) {
231231
throw new IllegalStateException("Iterator remove() can only be called once after next()");
232232
}
233-
// store value as remove may change the entry in the decorator (e.g. TreeMap)
233+
// store value as remove may change the entry in the decorator (for example TreeMap)
234234
final Object value = last.getValue();
235235
super.remove();
236236
parent.reverseMap.remove(value);
@@ -527,7 +527,7 @@ public boolean removeIf(final Predicate<? super E> filter) {
527527
* This implementation iterates over the elements of this bidi map, checking each element in
528528
* turn to see if it's contained in {@code coll}. If it's not contained, it's removed
529529
* from this bidi map. As a consequence, it is advised to use a collection type for
530-
* {@code coll} that provides a fast (e.g. O(1)) implementation of
530+
* {@code coll} that provides a fast (for example O(1)) implementation of
531531
* {@link Collection#contains(Object)}.
532532
*/
533533
@Override

src/main/java/org/apache/commons/collections4/bidimap/TreeBidiMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
* </p>
5555
* <p>
5656
* While that goal could be accomplished by taking a pair of TreeMaps
57-
* and redirecting requests to the appropriate TreeMap (e.g.,
57+
* and redirecting requests to the appropriate TreeMap (for example,
5858
* containsKey would be directed to the TreeMap that maps values to
5959
* keys, containsValue would be directed to the TreeMap that maps keys
6060
* to values), there are problems with that implementation.

src/main/java/org/apache/commons/collections4/bloomfilter/LayerManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public static <T extends BloomFilter<T>> Consumer<Deque<T>> onMaxSize(final int
160160

161161
/**
162162
* Removes the last added target if it is empty. Useful as the first in a chain
163-
* of cleanup consumers. (e.g. {@code Cleanup.removeEmptyTarget.andThen( otherConsumer )})
163+
* of cleanup consumers. (for example {@code Cleanup.removeEmptyTarget.andThen( otherConsumer )})
164164
*
165165
* @param <T> Type of BloomFilter.
166166
* @return A Consumer suitable for the LayerManager {@code cleanup} parameter.

src/main/java/org/apache/commons/collections4/bloomfilter/package-info.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* list. There are lots of other uses, and in most cases the reason is to perform a fast check as a gateway for a longer
3333
* operation.</p>
3434
*
35-
* <p>Some Bloom filters (e.g. {@link org.apache.commons.collections4.bloomfilter.CountingBloomFilter}) use counters rather than bits. In this case each counter
35+
* <p>Some Bloom filters (for example {@link org.apache.commons.collections4.bloomfilter.CountingBloomFilter}) use counters rather than bits. In this case each counter
3636
* is called a <em>cell</em>.</p>
3737
*
3838
* <h3>BloomFilter</h3>
@@ -51,7 +51,7 @@
5151
* <li><em>index</em> - In the {@code bloomfilter} package an Index is a logical collection of {@code int}s specifying the enabled
5252
* bits in the bit map.</li>
5353
*
54-
* <li><em>cell</em> - Some Bloom filters (e.g. {@link org.apache.commons.collections4.bloomfilter.CountingBloomFilter}) use counters rather than bits. In the {@code bloomfilter} package
54+
* <li><em>cell</em> - Some Bloom filters (for example {@link org.apache.commons.collections4.bloomfilter.CountingBloomFilter}) use counters rather than bits. In the {@code bloomfilter} package
5555
* Cells are pairs of ints representing an index and a value. They are not the standard Java {@code Pair} objects,
5656
* nor the Apache Commons Lang version either.</li>
5757
*
@@ -61,7 +61,7 @@
6161
* {@link org.apache.commons.collections4.bloomfilter.IndexExtractor} and have a {@code processXs} methods that take a
6262
* type specialization of {@link java.util.function.Predicate}.
6363
* {@code Predicate} type argument.
64-
* (e.g. {@link org.apache.commons.collections4.bloomfilter.BitMapExtractor#processBitMaps(java.util.function.LongPredicate)},
64+
* (for example {@link org.apache.commons.collections4.bloomfilter.BitMapExtractor#processBitMaps(java.util.function.LongPredicate)},
6565
* {@link org.apache.commons.collections4.bloomfilter.IndexExtractor#processIndices(java.util.function.IntPredicate)},
6666
* and {@link org.apache.commons.collections4.bloomfilter.CellExtractor#processCells(org.apache.commons.collections4.bloomfilter.CellExtractor.CellPredicate)}).
6767
* The predicate is expected to process each of the Xs in turn and return {@code true} if the processing should continue

0 commit comments

Comments
 (0)