Skip to content

Commit dacc306

Browse files
committed
Javadoc
1 parent 63fd84f commit dacc306

File tree

64 files changed

+196
-190
lines changed

Some content is hidden

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

64 files changed

+196
-190
lines changed

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

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1834,7 +1834,7 @@ public static <T> Class<T> getComponentType(final T[] array) {
18341834
}
18351835

18361836
/**
1837-
* Returns the length of the specified array.
1837+
* Gets the length of the specified array.
18381838
* This method can deal with {@link Object} arrays and with primitive arrays.
18391839
* <p>
18401840
* If the input array is {@code null}, {@code 0} is returned.
@@ -3188,7 +3188,7 @@ private static boolean isArrayEmpty(final Object array) {
31883188
}
31893189

31903190
/**
3191-
* Returns whether a given array can safely be accessed at the given index.
3191+
* Tests whether a given array can safely be accessed at the given index.
31923192
*
31933193
* <pre>
31943194
* ArrayUtils.isArrayIndexValid(null, 0) = false
@@ -3207,7 +3207,7 @@ public static <T> boolean isArrayIndexValid(final T[] array, final int index) {
32073207
}
32083208

32093209
/**
3210-
* Checks if an array of primitive booleans is empty or {@code null}.
3210+
* Tests whether an array of primitive booleans is empty or {@code null}.
32113211
*
32123212
* @param array the array to test
32133213
* @return {@code true} if the array is empty or {@code null}
@@ -3218,7 +3218,7 @@ public static boolean isEmpty(final boolean[] array) {
32183218
}
32193219

32203220
/**
3221-
* Checks if an array of primitive bytes is empty or {@code null}.
3221+
* Tests whether an array of primitive bytes is empty or {@code null}.
32223222
*
32233223
* @param array the array to test
32243224
* @return {@code true} if the array is empty or {@code null}
@@ -3229,7 +3229,7 @@ public static boolean isEmpty(final byte[] array) {
32293229
}
32303230

32313231
/**
3232-
* Checks if an array of primitive chars is empty or {@code null}.
3232+
* Tests whether an array of primitive chars is empty or {@code null}.
32333233
*
32343234
* @param array the array to test
32353235
* @return {@code true} if the array is empty or {@code null}
@@ -3240,7 +3240,7 @@ public static boolean isEmpty(final char[] array) {
32403240
}
32413241

32423242
/**
3243-
* Checks if an array of primitive doubles is empty or {@code null}.
3243+
* Tests whether an array of primitive doubles is empty or {@code null}.
32443244
*
32453245
* @param array the array to test
32463246
* @return {@code true} if the array is empty or {@code null}
@@ -3251,7 +3251,7 @@ public static boolean isEmpty(final double[] array) {
32513251
}
32523252

32533253
/**
3254-
* Checks if an array of primitive floats is empty or {@code null}.
3254+
* Tests whether an array of primitive floats is empty or {@code null}.
32553255
*
32563256
* @param array the array to test
32573257
* @return {@code true} if the array is empty or {@code null}
@@ -3262,7 +3262,7 @@ public static boolean isEmpty(final float[] array) {
32623262
}
32633263

32643264
/**
3265-
* Checks if an array of primitive ints is empty or {@code null}.
3265+
* Tests whether an array of primitive ints is empty or {@code null}.
32663266
*
32673267
* @param array the array to test
32683268
* @return {@code true} if the array is empty or {@code null}
@@ -3273,7 +3273,7 @@ public static boolean isEmpty(final int[] array) {
32733273
}
32743274

32753275
/**
3276-
* Checks if an array of primitive longs is empty or {@code null}.
3276+
* Tests whether an array of primitive longs is empty or {@code null}.
32773277
*
32783278
* @param array the array to test
32793279
* @return {@code true} if the array is empty or {@code null}
@@ -3284,7 +3284,7 @@ public static boolean isEmpty(final long[] array) {
32843284
}
32853285

32863286
/**
3287-
* Checks if an array of Objects is empty or {@code null}.
3287+
* Tests whether an array of Objects is empty or {@code null}.
32883288
*
32893289
* @param array the array to test
32903290
* @return {@code true} if the array is empty or {@code null}
@@ -3295,7 +3295,7 @@ public static boolean isEmpty(final Object[] array) {
32953295
}
32963296

32973297
/**
3298-
* Checks if an array of primitive shorts is empty or {@code null}.
3298+
* Tests whether an array of primitive shorts is empty or {@code null}.
32993299
*
33003300
* @param array the array to test
33013301
* @return {@code true} if the array is empty or {@code null}
@@ -3306,7 +3306,7 @@ public static boolean isEmpty(final short[] array) {
33063306
}
33073307

33083308
/**
3309-
* Compares two arrays, using equals(), handling multidimensional arrays
3309+
* Tests whether two arrays have equal content, using equals(), handling multidimensional arrays
33103310
* correctly.
33113311
* <p>
33123312
* Multi-dimensional primitive arrays are also handled correctly by this method.
@@ -3324,7 +3324,7 @@ public static boolean isEquals(final Object array1, final Object array2) {
33243324
}
33253325

33263326
/**
3327-
* Checks if an array of primitive booleans is not empty and not {@code null}.
3327+
* Tests whether an array of primitive booleans is not empty and not {@code null}.
33283328
*
33293329
* @param array the array to test
33303330
* @return {@code true} if the array is not empty and not {@code null}
@@ -3335,7 +3335,7 @@ public static boolean isNotEmpty(final boolean[] array) {
33353335
}
33363336

33373337
/**
3338-
* Checks if an array of primitive bytes is not empty and not {@code null}.
3338+
* Tests whether an array of primitive bytes is not empty and not {@code null}.
33393339
*
33403340
* @param array the array to test
33413341
* @return {@code true} if the array is not empty and not {@code null}
@@ -3346,7 +3346,7 @@ public static boolean isNotEmpty(final byte[] array) {
33463346
}
33473347

33483348
/**
3349-
* Checks if an array of primitive chars is not empty and not {@code null}.
3349+
* Tests whether an array of primitive chars is not empty and not {@code null}.
33503350
*
33513351
* @param array the array to test
33523352
* @return {@code true} if the array is not empty and not {@code null}
@@ -3357,7 +3357,7 @@ public static boolean isNotEmpty(final char[] array) {
33573357
}
33583358

33593359
/**
3360-
* Checks if an array of primitive doubles is not empty and not {@code null}.
3360+
* Tests whether an array of primitive doubles is not empty and not {@code null}.
33613361
*
33623362
* @param array the array to test
33633363
* @return {@code true} if the array is not empty and not {@code null}
@@ -3368,7 +3368,7 @@ public static boolean isNotEmpty(final double[] array) {
33683368
}
33693369

33703370
/**
3371-
* Checks if an array of primitive floats is not empty and not {@code null}.
3371+
* Tests whether an array of primitive floats is not empty and not {@code null}.
33723372
*
33733373
* @param array the array to test
33743374
* @return {@code true} if the array is not empty and not {@code null}
@@ -3379,7 +3379,7 @@ public static boolean isNotEmpty(final float[] array) {
33793379
}
33803380

33813381
/**
3382-
* Checks if an array of primitive ints is not empty and not {@code null}.
3382+
* Tests whether an array of primitive ints is not empty and not {@code null}.
33833383
*
33843384
* @param array the array to test
33853385
* @return {@code true} if the array is not empty and not {@code null}
@@ -3390,7 +3390,7 @@ public static boolean isNotEmpty(final int[] array) {
33903390
}
33913391

33923392
/**
3393-
* Checks if an array of primitive longs is not empty and not {@code null}.
3393+
* Tests whether an array of primitive longs is not empty and not {@code null}.
33943394
*
33953395
* @param array the array to test
33963396
* @return {@code true} if the array is not empty and not {@code null}
@@ -3401,7 +3401,7 @@ public static boolean isNotEmpty(final long[] array) {
34013401
}
34023402

34033403
/**
3404-
* Checks if an array of primitive shorts is not empty and not {@code null}.
3404+
* Tests whether an array of primitive shorts is not empty and not {@code null}.
34053405
*
34063406
* @param array the array to test
34073407
* @return {@code true} if the array is not empty and not {@code null}
@@ -3412,7 +3412,7 @@ public static boolean isNotEmpty(final short[] array) {
34123412
}
34133413

34143414
/**
3415-
* Checks if an array of Objects is not empty and not {@code null}.
3415+
* Tests whether an array of Objects is not empty and not {@code null}.
34163416
*
34173417
* @param <T> the component type of the array
34183418
* @param array the array to test
@@ -3424,7 +3424,7 @@ public static <T> boolean isNotEmpty(final T[] array) {
34243424
}
34253425

34263426
/**
3427-
* Checks whether two arrays are the same length, treating
3427+
* Tests whether two arrays are the same length, treating
34283428
* {@code null} arrays as length {@code 0}.
34293429
*
34303430
* @param array1 the first array, may be {@code null}
@@ -3437,7 +3437,7 @@ public static boolean isSameLength(final boolean[] array1, final boolean[] array
34373437
}
34383438

34393439
/**
3440-
* Checks whether two arrays are the same length, treating
3440+
* Tests whether two arrays are the same length, treating
34413441
* {@code null} arrays as length {@code 0}.
34423442
*
34433443
* @param array1 the first array, may be {@code null}
@@ -3450,7 +3450,7 @@ public static boolean isSameLength(final byte[] array1, final byte[] array2) {
34503450
}
34513451

34523452
/**
3453-
* Checks whether two arrays are the same length, treating
3453+
* Tests whether two arrays are the same length, treating
34543454
* {@code null} arrays as length {@code 0}.
34553455
*
34563456
* @param array1 the first array, may be {@code null}
@@ -3463,7 +3463,7 @@ public static boolean isSameLength(final char[] array1, final char[] array2) {
34633463
}
34643464

34653465
/**
3466-
* Checks whether two arrays are the same length, treating
3466+
* Tests whether two arrays are the same length, treating
34673467
* {@code null} arrays as length {@code 0}.
34683468
*
34693469
* @param array1 the first array, may be {@code null}
@@ -3476,7 +3476,7 @@ public static boolean isSameLength(final double[] array1, final double[] array2)
34763476
}
34773477

34783478
/**
3479-
* Checks whether two arrays are the same length, treating
3479+
* Tests whether two arrays are the same length, treating
34803480
* {@code null} arrays as length {@code 0}.
34813481
*
34823482
* @param array1 the first array, may be {@code null}
@@ -3489,7 +3489,7 @@ public static boolean isSameLength(final float[] array1, final float[] array2) {
34893489
}
34903490

34913491
/**
3492-
* Checks whether two arrays are the same length, treating
3492+
* Tests whether two arrays are the same length, treating
34933493
* {@code null} arrays as length {@code 0}.
34943494
*
34953495
* @param array1 the first array, may be {@code null}
@@ -3502,7 +3502,7 @@ public static boolean isSameLength(final int[] array1, final int[] array2) {
35023502
}
35033503

35043504
/**
3505-
* Checks whether two arrays are the same length, treating
3505+
* Tests whether two arrays are the same length, treating
35063506
* {@code null} arrays as length {@code 0}.
35073507
*
35083508
* @param array1 the first array, may be {@code null}
@@ -3515,7 +3515,7 @@ public static boolean isSameLength(final long[] array1, final long[] array2) {
35153515
}
35163516

35173517
/**
3518-
* Checks whether two arrays are the same length, treating
3518+
* Tests whether two arrays are the same length, treating
35193519
* {@code null} arrays as length {@code 0}.
35203520
* <p>
35213521
* Any multi-dimensional aspects of the arrays are ignored.
@@ -3532,7 +3532,7 @@ public static boolean isSameLength(final Object array1, final Object array2) {
35323532
}
35333533

35343534
/**
3535-
* Checks whether two arrays are the same length, treating
3535+
* Tests whether two arrays are the same length, treating
35363536
* {@code null} arrays as length {@code 0}.
35373537
* <p>
35383538
* Any multi-dimensional aspects of the arrays are ignored.
@@ -3548,7 +3548,7 @@ public static boolean isSameLength(final Object[] array1, final Object[] array2)
35483548
}
35493549

35503550
/**
3551-
* Checks whether two arrays are the same length, treating
3551+
* Tests whether two arrays are the same length, treating
35523552
* {@code null} arrays as length {@code 0}.
35533553
*
35543554
* @param array1 the first array, may be {@code null}
@@ -3561,7 +3561,7 @@ public static boolean isSameLength(final short[] array1, final short[] array2) {
35613561
}
35623562

35633563
/**
3564-
* Checks whether two arrays are the same type taking into account
3564+
* Tests whether two arrays are the same type taking into account
35653565
* multidimensional arrays.
35663566
*
35673567
* @param array1 the first array, must not be {@code null}
@@ -3577,7 +3577,7 @@ public static boolean isSameType(final Object array1, final Object array2) {
35773577
}
35783578

35793579
/**
3580-
* This method checks whether the provided array is sorted according to natural ordering
3580+
* Tests whether whether the provided array is sorted according to natural ordering
35813581
* ({@code false} before {@code true}).
35823582
*
35833583
* @param array the array to check
@@ -3601,7 +3601,7 @@ public static boolean isSorted(final boolean[] array) {
36013601
}
36023602

36033603
/**
3604-
* Checks whether the provided array is sorted according to natural ordering.
3604+
* Tests whether the provided array is sorted according to natural ordering.
36053605
*
36063606
* @param array the array to check
36073607
* @return whether the array is sorted according to natural ordering
@@ -3624,7 +3624,7 @@ public static boolean isSorted(final byte[] array) {
36243624
}
36253625

36263626
/**
3627-
* Checks whether the provided array is sorted according to natural ordering.
3627+
* Tests whether the provided array is sorted according to natural ordering.
36283628
*
36293629
* @param array the array to check
36303630
* @return whether the array is sorted according to natural ordering
@@ -3647,7 +3647,7 @@ public static boolean isSorted(final char[] array) {
36473647
}
36483648

36493649
/**
3650-
* This method checks whether the provided array is sorted according to natural ordering.
3650+
* Tests whether the provided array is sorted according to natural ordering.
36513651
*
36523652
* @param array the array to check
36533653
* @return whether the array is sorted according to natural ordering
@@ -3670,7 +3670,7 @@ public static boolean isSorted(final double[] array) {
36703670
}
36713671

36723672
/**
3673-
* This method checks whether the provided array is sorted according to natural ordering.
3673+
* Tests whether the provided array is sorted according to natural ordering.
36743674
*
36753675
* @param array the array to check
36763676
* @return whether the array is sorted according to natural ordering
@@ -3693,7 +3693,7 @@ public static boolean isSorted(final float[] array) {
36933693
}
36943694

36953695
/**
3696-
* This method checks whether the provided array is sorted according to natural ordering.
3696+
* Tests whether the provided array is sorted according to natural ordering.
36973697
*
36983698
* @param array the array to check
36993699
* @return whether the array is sorted according to natural ordering
@@ -3716,7 +3716,7 @@ public static boolean isSorted(final int[] array) {
37163716
}
37173717

37183718
/**
3719-
* This method checks whether the provided array is sorted according to natural ordering.
3719+
* Tests whether the provided array is sorted according to natural ordering.
37203720
*
37213721
* @param array the array to check
37223722
* @return whether the array is sorted according to natural ordering
@@ -3739,7 +3739,7 @@ public static boolean isSorted(final long[] array) {
37393739
}
37403740

37413741
/**
3742-
* This method checks whether the provided array is sorted according to natural ordering.
3742+
* Tests whether the provided array is sorted according to natural ordering.
37433743
*
37443744
* @param array the array to check
37453745
* @return whether the array is sorted according to natural ordering
@@ -3762,7 +3762,7 @@ public static boolean isSorted(final short[] array) {
37623762
}
37633763

37643764
/**
3765-
* This method checks whether the provided array is sorted according to the class's
3765+
* Tests whether the provided array is sorted according to the class's
37663766
* {@code compareTo} method.
37673767
*
37683768
* @param array the array to check
@@ -3775,7 +3775,7 @@ public static <T extends Comparable<? super T>> boolean isSorted(final T[] array
37753775
}
37763776

37773777
/**
3778-
* This method checks whether the provided array is sorted according to the provided {@link Comparator}.
3778+
* Tests whether the provided array is sorted according to the provided {@link Comparator}.
37793779
*
37803780
* @param array the array to check
37813781
* @param comparator the {@link Comparator} to compare over

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public int getValue(final int holder) {
183183
}
184184

185185
/**
186-
* Returns whether all of the bits are set or not.
186+
* Tests whether all of the bits are set or not.
187187
*
188188
* <p>This is a stricter test than {@link #isSet(int)},
189189
* in that all of the bits in a multi-bit set must be set
@@ -199,7 +199,7 @@ public boolean isAllSet(final int holder) {
199199
}
200200

201201
/**
202-
* Returns whether the field is set or not.
202+
* Tests whether the field is set or not.
203203
*
204204
* <p>This is most commonly used for a single-bit field, which is
205205
* often used to represent a boolean value; the results of using

0 commit comments

Comments
 (0)