Skip to content

Commit 5115907

Browse files
committed
Javadoc
1 parent d8b8d06 commit 5115907

68 files changed

Lines changed: 342 additions & 342 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/main/java/org/apache/commons/lang3/AppendableJoiner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
* This class is immutable and thread-safe.
7474
* </p>
7575
*
76-
* @param <T> the type of elements to join.
76+
* @param <T> The type of elements to join.
7777
* @see Appendable
7878
* @see StringBuilder
7979
* @see String#join(CharSequence, CharSequence...)
@@ -86,7 +86,7 @@ public final class AppendableJoiner<T> {
8686
/**
8787
* Builds instances of {@link AppendableJoiner}.
8888
*
89-
* @param <T> the type of elements to join.
89+
* @param <T> The type of elements to join.
9090
*/
9191
public static final class Builder<T> implements Supplier<AppendableJoiner<T>> {
9292

src/main/java/org/apache/commons/lang3/ArrayFill.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public static <T, E extends Throwable> T[] fill(final T[] array, final FailableI
255255
/**
256256
* Fills and returns the given array, assigning the given {@code T} value to each element of the array.
257257
*
258-
* @param <T> the array type.
258+
* @param <T> The array type.
259259
* @param a the array to fill (may be null).
260260
* @param val the value to store in all elements of the array.
261261
* @return the given array.

src/main/java/org/apache/commons/lang3/ArraySorter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public static short[] sort(final short[] array) {
129129
/**
130130
* Sorts the given array into ascending order and returns it.
131131
*
132-
* @param <T> the array type.
132+
* @param <T> The array type.
133133
* @param array the array to sort (may be null).
134134
* @return the given array.
135135
* @see Arrays#sort(Object[])
@@ -144,7 +144,7 @@ public static <T> T[] sort(final T[] array) {
144144
/**
145145
* Sorts the given array into ascending order and returns it.
146146
*
147-
* @param <T> the array type.
147+
* @param <T> The array type.
148148
* @param array the array to sort (may be null).
149149
* @param comparator the comparator to determine the order of the array. A {@code null} value uses the elements'
150150
* {@link Comparable natural ordering}.

src/main/java/org/apache/commons/lang3/ArrayUtils.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ public static short[] add(final short[] array, final short element) {
782782
* ArrayUtils.add(["a", "b"], 3, "c") = ["a", "b", "c"]
783783
* </pre>
784784
*
785-
* @param <T> the component type of the array.
785+
* @param <T> The component type of the array.
786786
* @param array the array to add the element to, may be {@code null}.
787787
* @param index the position of the new object.
788788
* @param element the object to add.
@@ -826,7 +826,7 @@ public static <T> T[] add(final T[] array, final int index, final T element) {
826826
* ArrayUtils.add(["a", "b"], "c") = ["a", "b", "c"]
827827
* </pre>
828828
*
829-
* @param <T> the component type of the array.
829+
* @param <T> The component type of the array.
830830
* @param array the array to "add" the element to, may be {@code null}.
831831
* @param element the object to add, may be {@code null}.
832832
* @return A new array containing the existing elements plus the new element
@@ -1125,7 +1125,7 @@ public static short[] addAll(final short[] array1, final short... array2) {
11251125
* ArrayUtils.addAll(["a", "b", "c"], ["1", "2", "3"]) = ["a", "b", "c", "1", "2", "3"]
11261126
* </pre>
11271127
*
1128-
* @param <T> the component type of the array.
1128+
* @param <T> The component type of the array.
11291129
* @param array1 the first array whose elements are added to the new array, may be {@code null}.
11301130
* @param array2 the second array whose elements are added to the new array, may be {@code null}.
11311131
* @return The new array, {@code null} if both arrays are {@code null}.
@@ -1407,7 +1407,7 @@ public static short[] addFirst(final short[] array, final short element) {
14071407
* ArrayUtils.addFirst(["a", "b"], "c") = ["c", "a", "b"]
14081408
* </pre>
14091409
*
1410-
* @param <T> the component type of the array.
1410+
* @param <T> The component type of the array.
14111411
* @param array the array to "add" the element to, may be {@code null}.
14121412
* @param element the object to add, may be {@code null}.
14131413
* @return A new array containing the existing elements plus the new element The returned array type will be that of
@@ -3506,7 +3506,7 @@ private static boolean isArrayEmpty(final Object array) {
35063506
* ArrayUtils.isArrayIndexValid(["a"], 0) = true
35073507
* </pre>
35083508
*
3509-
* @param <T> the component type of the array.
3509+
* @param <T> The component type of the array.
35103510
* @param array the array to inspect, may be {@code null}.
35113511
* @param index the index of the array to be inspected.
35123512
* @return Whether the given index is safely-accessible in the given array.
@@ -3724,7 +3724,7 @@ public static boolean isNotEmpty(final short[] array) {
37243724
/**
37253725
* Tests whether an array of Objects is not empty and not {@code null}.
37263726
*
3727-
* @param <T> the component type of the array
3727+
* @param <T> The component type of the array
37283728
* @param array the array to test.
37293729
* @return {@code true} if the array is not empty and not {@code null}.
37303730
* @since 2.5
@@ -4054,7 +4054,7 @@ public static boolean isSorted(final short[] array) {
40544054
* {@code compareTo} method.
40554055
*
40564056
* @param array the array to check.
4057-
* @param <T> the datatype of the array to check, it must implement {@link Comparable}.
4057+
* @param <T> The datatype of the array to check, it must implement {@link Comparable}.
40584058
* @return whether the array is sorted.
40594059
* @since 3.4
40604060
*/
@@ -4067,7 +4067,7 @@ public static <T extends Comparable<? super T>> boolean isSorted(final T[] array
40674067
*
40684068
* @param array the array to check.
40694069
* @param comparator the {@link Comparator} to compare over.
4070-
* @param <T> the datatype of the array.
4070+
* @param <T> The datatype of the array.
40714071
* @return whether the array is sorted.
40724072
* @throws NullPointerException if {@code comparator} is {@code null}.
40734073
* @since 3.4
@@ -5764,7 +5764,7 @@ public static short[] removeAllOccurences(final short[] array, final short eleme
57645764
* {@code null} will be returned if the input array is {@code null}.
57655765
* </p>
57665766
*
5767-
* @param <T> the type of object in the array, may be {@code null}.
5767+
* @param <T> The type of object in the array, may be {@code null}.
57685768
* @param array the input array, will not be modified, and may be {@code null}.
57695769
* @param element the element to remove, may be {@code null}.
57705770
* @return A new array containing the existing elements except the occurrences of the specified element.
@@ -5920,7 +5920,7 @@ public static short[] removeAllOccurrences(final short[] array, final short elem
59205920
* {@code null} will be returned if the input array is {@code null}.
59215921
* </p>
59225922
*
5923-
* @param <T> the type of object in the array, may be {@code null}.
5923+
* @param <T> The type of object in the array, may be {@code null}.
59245924
* @param array the input array, will not be modified, and may be {@code null}.
59255925
* @param element the element to remove, may be {@code null}.
59265926
* @return A new array containing the existing elements except the occurrences of the specified element.
@@ -6229,7 +6229,7 @@ public static short[] removeElement(final short[] array, final short element) {
62296229
* ArrayUtils.removeElement(["a", "b", "a"], "a") = ["b", "a"]
62306230
* </pre>
62316231
*
6232-
* @param <T> the component type of the array
6232+
* @param <T> The component type of the array
62336233
* @param array the input array, may be {@code null}.
62346234
* @param element the element to be removed, may be {@code null}.
62356235
* @return A new array containing the existing elements except the first
@@ -6654,7 +6654,7 @@ public static short[] removeElements(final short[] array, final short... values)
66546654
* ArrayUtils.removeElements(["a", "b", "a"], "a", "a") = ["b"]
66556655
* </pre>
66566656
*
6657-
* @param <T> the component type of the array
6657+
* @param <T> The component type of the array
66586658
* @param array the input array, will not be modified, and may be {@code null}.
66596659
* @param values the values to be removed.
66606660
* @return A new array containing the existing elements except the

src/main/java/org/apache/commons/lang3/EnumUtils.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class EnumUtils {
4747
/**
4848
* Validate {@code enumClass}.
4949
*
50-
* @param <E> the type of the enumeration.
50+
* @param <E> The type of the enumeration.
5151
* @param enumClass to check.
5252
* @return {@code enumClass}.
5353
* @throws NullPointerException if {@code enumClass} is {@code null}.
@@ -63,7 +63,7 @@ private static <E extends Enum<E>> Class<E> asEnum(final Class<E> enumClass) {
6363
/**
6464
* Validate that {@code enumClass} is compatible with representation in a {@code long}.
6565
*
66-
* @param <E> the type of the enumeration.
66+
* @param <E> The type of the enumeration.
6767
* @param enumClass to check.
6868
* @return {@code enumClass}.
6969
* @throws NullPointerException if {@code enumClass} is {@code null}.
@@ -194,7 +194,7 @@ public static <E extends Enum<E>> long[] generateBitVectors(final Class<E> enumC
194194
* <p>This method differs from {@link Enum#valueOf} in that it does not throw an exception
195195
* for an invalid enum name.</p>
196196
*
197-
* @param <E> the type of the enumeration.
197+
* @param <E> The type of the enumeration.
198198
* @param enumClass the class of the enum to query, not null.
199199
* @param enumName the enum name, null returns null.
200200
* @return the enum, null if not found.
@@ -209,7 +209,7 @@ public static <E extends Enum<E>> E getEnum(final Class<E> enumClass, final Stri
209209
* <p>This method differs from {@link Enum#valueOf} in that it does not throw an exception
210210
* for an invalid enum name.</p>
211211
*
212-
* @param <E> the type of the enumeration.
212+
* @param <E> The type of the enumeration.
213213
* @param enumClass the class of the enum to query, null returns default enum.
214214
* @param enumName the enum name, null returns default enum.
215215
* @param defaultEnum the default enum.
@@ -266,7 +266,7 @@ public static <E extends Enum<E>> E getEnumIgnoreCase(final Class<E> enumClass,
266266
*
267267
* <p>This method is useful when you need a list of enums rather than an array.</p>
268268
*
269-
* @param <E> the type of the enumeration.
269+
* @param <E> The type of the enumeration.
270270
* @param enumClass the class of the enum to query, not null.
271271
* @return the modifiable list of enums, never null.
272272
*/
@@ -279,7 +279,7 @@ public static <E extends Enum<E>> List<E> getEnumList(final Class<E> enumClass)
279279
*
280280
* <p>This method is useful when you need a map of enums by name.</p>
281281
*
282-
* @param <E> the type of the enumeration.
282+
* @param <E> The type of the enumeration.
283283
* @param enumClass the class of the enum to query, not null.
284284
* @return the modifiable map of enum names to enums, never null.
285285
*/

src/main/java/org/apache/commons/lang3/Functions.java

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public interface FailableSupplier<R, T extends Throwable> {
291291
* @param object2 the second object to consume by {@code consumer}
292292
* @param <O1> the type of the first argument the consumer accepts
293293
* @param <O2> the type of the second argument the consumer accepts
294-
* @param <T> the type of checked exception the consumer may throw
294+
* @param <T> The type of checked exception the consumer may throw
295295
*/
296296
public static <O1, O2, T extends Throwable> void accept(final FailableBiConsumer<O1, O2, T> consumer,
297297
final O1 object1, final O2 object2) {
@@ -303,8 +303,8 @@ public static <O1, O2, T extends Throwable> void accept(final FailableBiConsumer
303303
*
304304
* @param consumer the consumer to consume
305305
* @param object the object to consume by {@code consumer}
306-
* @param <O> the type the consumer accepts
307-
* @param <T> the type of checked exception the consumer may throw
306+
* @param <O> The type the consumer accepts
307+
* @param <T> The type of checked exception the consumer may throw
308308
*/
309309
public static <O, T extends Throwable> void accept(final FailableConsumer<O, T> consumer, final O object) {
310310
run(() -> consumer.accept(object));
@@ -318,8 +318,8 @@ public static <O, T extends Throwable> void accept(final FailableConsumer<O, T>
318318
* @param input2 the second input to apply {@code function} on
319319
* @param <O1> the type of the first argument the function accepts
320320
* @param <O2> the type of the second argument the function accepts
321-
* @param <O> the return type of the function
322-
* @param <T> the type of checked exception the function may throw
321+
* @param <O> The return type of the function
322+
* @param <T> The type of checked exception the function may throw
323323
* @return the value returned from the function
324324
*/
325325
public static <O1, O2, O, T extends Throwable> O apply(final FailableBiFunction<O1, O2, O, T> function,
@@ -332,9 +332,9 @@ public static <O1, O2, O, T extends Throwable> O apply(final FailableBiFunction<
332332
*
333333
* @param function the function to apply
334334
* @param input the input to apply {@code function} on
335-
* @param <I> the type of the argument the function accepts
336-
* @param <O> the return type of the function
337-
* @param <T> the type of checked exception the function may throw
335+
* @param <I> The type of the argument the function accepts
336+
* @param <O> The return type of the function
337+
* @param <T> The type of checked exception the function may throw
338338
* @return the value returned from the function
339339
*/
340340
public static <I, O, T extends Throwable> O apply(final FailableFunction<I, O, T> function, final I input) {
@@ -359,7 +359,7 @@ public static <O1, O2> BiConsumer<O1, O2> asBiConsumer(final FailableBiConsumer<
359359
*
360360
* @param <O1> the type of the first argument of the input of the functions
361361
* @param <O2> the type of the second argument of the input of the functions
362-
* @param <O> the type of the output of the functions
362+
* @param <O> The type of the output of the functions
363363
* @param function a {@link FailableBiFunction}
364364
* @return a standard {@link BiFunction}
365365
* @since 3.10
@@ -384,7 +384,7 @@ public static <O1, O2> BiPredicate<O1, O2> asBiPredicate(final FailableBiPredica
384384
/**
385385
* Converts the given {@link FailableCallable} into a standard {@link Callable}.
386386
*
387-
* @param <O> the type used by the callables
387+
* @param <O> The type used by the callables
388388
* @param callable a {@link FailableCallable}
389389
* @return a standard {@link Callable}
390390
* @since 3.10
@@ -396,7 +396,7 @@ public static <O> Callable<O> asCallable(final FailableCallable<O, ?> callable)
396396
/**
397397
* Converts the given {@link FailableConsumer} into a standard {@link Consumer}.
398398
*
399-
* @param <I> the type used by the consumers
399+
* @param <I> The type used by the consumers
400400
* @param consumer a {@link FailableConsumer}
401401
* @return a standard {@link Consumer}
402402
* @since 3.10
@@ -408,8 +408,8 @@ public static <I> Consumer<I> asConsumer(final FailableConsumer<I, ?> consumer)
408408
/**
409409
* Converts the given {@link FailableFunction} into a standard {@link Function}.
410410
*
411-
* @param <I> the type of the input of the functions
412-
* @param <O> the type of the output of the functions
411+
* @param <I> The type of the input of the functions
412+
* @param <O> The type of the output of the functions
413413
* @param function a {code FailableFunction}
414414
* @return a standard {@link Function}
415415
* @since 3.10
@@ -421,7 +421,7 @@ public static <I, O> Function<I, O> asFunction(final FailableFunction<I, O, ?> f
421421
/**
422422
* Converts the given {@link FailablePredicate} into a standard {@link Predicate}.
423423
*
424-
* @param <I> the type used by the predicates
424+
* @param <I> The type used by the predicates
425425
* @param predicate a {@link FailablePredicate}
426426
* @return a standard {@link Predicate}
427427
* @since 3.10
@@ -444,7 +444,7 @@ public static Runnable asRunnable(final FailableRunnable<?> runnable) {
444444
/**
445445
* Converts the given {@link FailableSupplier} into a standard {@link Supplier}.
446446
*
447-
* @param <O> the type supplied by the suppliers
447+
* @param <O> The type supplied by the suppliers
448448
* @param supplier a {@link FailableSupplier}
449449
* @return a standard {@link Supplier}
450450
* @since 3.10
@@ -457,8 +457,8 @@ public static <O> Supplier<O> asSupplier(final FailableSupplier<O, ?> supplier)
457457
* Calls a callable and rethrows any exception as a {@link RuntimeException}.
458458
*
459459
* @param callable the callable to call
460-
* @param <O> the return type of the callable
461-
* @param <T> the type of checked exception the callable may throw
460+
* @param <O> The return type of the callable
461+
* @param <T> The type of checked exception the callable may throw
462462
* @return the value returned from the callable
463463
*/
464464
public static <O, T extends Throwable> O call(final FailableCallable<O, T> callable) {
@@ -534,7 +534,7 @@ public static RuntimeException rethrow(final Throwable throwable) {
534534
* Runs a runnable and rethrows any exception as a {@link RuntimeException}.
535535
*
536536
* @param runnable The runnable to run
537-
* @param <T> the type of checked exception the runnable may throw
537+
* @param <T> The type of checked exception the runnable may throw
538538
*/
539539
public static <T extends Throwable> void run(final FailableRunnable<T> runnable) {
540540
try {
@@ -583,7 +583,7 @@ public static <O> FailableStream<O> stream(final Stream<O> stream) {
583583
* @param object2 the second input to test by {@code predicate}
584584
* @param <O1> the type of the first argument the predicate tests
585585
* @param <O2> the type of the second argument the predicate tests
586-
* @param <T> the type of checked exception the predicate may throw
586+
* @param <T> The type of checked exception the predicate may throw
587587
* @return the boolean value returned by the predicate
588588
*/
589589
public static <O1, O2, T extends Throwable> boolean test(final FailableBiPredicate<O1, O2, T> predicate,
@@ -596,8 +596,8 @@ public static <O1, O2, T extends Throwable> boolean test(final FailableBiPredica
596596
*
597597
* @param predicate the predicate to test
598598
* @param object the input to test by {@code predicate}
599-
* @param <O> the type of argument the predicate tests
600-
* @param <T> the type of checked exception the predicate may throw
599+
* @param <O> The type of argument the predicate tests
600+
* @param <T> The type of checked exception the predicate may throw
601601
* @return the boolean value returned by the predicate
602602
*/
603603
public static <O, T extends Throwable> boolean test(final FailablePredicate<O, T> predicate, final O object) {

0 commit comments

Comments
 (0)