Make JavaDoc lint happy
This commit is contained in:
parent
09686fad46
commit
0807eedad6
|
@ -1838,15 +1838,14 @@ public class ArrayUtils {
|
|||
* does nothing for a {@code null} or empty input array or for overflow indices.
|
||||
* Negative indices are promoted to 0(zero).</p>
|
||||
*
|
||||
* <p>Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap(["1", "2", "3"], 0, 2) -> ["3", "2", "1"]</li>
|
||||
* <li>ArrayUtils.swap(["1", "2", "3"], 0, 0) -> ["1", "2", "3"]</li>
|
||||
* <li>ArrayUtils.swap(["1", "2", "3"], 1, 0) -> ["2", "1", "3"]</li>
|
||||
* <li>ArrayUtils.swap(["1", "2", "3"], 0, 5) -> ["1", "2", "3"]</li>
|
||||
* <li>ArrayUtils.swap(["1", "2", "3"], -1, 1) -> ["2", "1", "3"]</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
* Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap(["1", "2", "3"], 0, 2) -> ["3", "2", "1"]</li>
|
||||
* <li>ArrayUtils.swap(["1", "2", "3"], 0, 0) -> ["1", "2", "3"]</li>
|
||||
* <li>ArrayUtils.swap(["1", "2", "3"], 1, 0) -> ["2", "1", "3"]</li>
|
||||
* <li>ArrayUtils.swap(["1", "2", "3"], 0, 5) -> ["1", "2", "3"]</li>
|
||||
* <li>ArrayUtils.swap(["1", "2", "3"], -1, 1) -> ["2", "1", "3"]</li>
|
||||
* </ul>
|
||||
*
|
||||
* @param array the array to swap, may be {@code null}
|
||||
* @param offset1 the index of the first element to swap
|
||||
|
@ -1861,21 +1860,21 @@ public class ArrayUtils {
|
|||
}
|
||||
|
||||
/**
|
||||
* <p>Swaps two elements in the given long array.
|
||||
* Swaps two elements in the given long array.
|
||||
*
|
||||
* <p>There is no special handling for multi-dimensional arrays. This method
|
||||
* does nothing for a {@code null} or empty input array or for overflow indices.
|
||||
* Negative indices are promoted to 0(zero).</p>
|
||||
*
|
||||
* <p>Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([true, false, true], 0, 2) -> [true, false, true]</li>
|
||||
* <li>ArrayUtils.swap([true, false, true], 0, 0) -> [true, false, true]</li>
|
||||
* <li>ArrayUtils.swap([true, false, true], 1, 0) -> [false, true, true]</li>
|
||||
* <li>ArrayUtils.swap([true, false, true], 0, 5) -> [true, false, true]</li>
|
||||
* <li>ArrayUtils.swap([true, false, true], -1, 1) -> [false, true, true]</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
* Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([true, false, true], 0, 2) -> [true, false, true]</li>
|
||||
* <li>ArrayUtils.swap([true, false, true], 0, 0) -> [true, false, true]</li>
|
||||
* <li>ArrayUtils.swap([true, false, true], 1, 0) -> [false, true, true]</li>
|
||||
* <li>ArrayUtils.swap([true, false, true], 0, 5) -> [true, false, true]</li>
|
||||
* <li>ArrayUtils.swap([true, false, true], -1, 1) -> [false, true, true]</li>
|
||||
* </ul>
|
||||
*
|
||||
*
|
||||
* @param array the array to swap, may be {@code null}
|
||||
* @param offset1 the index of the first element to swap
|
||||
|
@ -1896,15 +1895,14 @@ public class ArrayUtils {
|
|||
* does nothing for a {@code null} or empty input array or for overflow indices.
|
||||
* Negative indices are promoted to 0(zero).</p>
|
||||
*
|
||||
* <p>Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 2) -> [3, 2, 1]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 0) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 1, 0) -> [2, 1, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 5) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], -1, 1) -> [2, 1, 3]</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
* Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 2) -> [3, 2, 1]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 0) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 1, 0) -> [2, 1, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 5) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], -1, 1) -> [2, 1, 3]</li>
|
||||
* </ul>
|
||||
*
|
||||
* @param array the array to swap, may be {@code null}
|
||||
* @param offset1 the index of the first element to swap
|
||||
|
@ -1925,16 +1923,15 @@ public class ArrayUtils {
|
|||
* does nothing for a {@code null} or empty input array or for overflow indices.
|
||||
* Negative indices are promoted to 0(zero).</p>
|
||||
*
|
||||
* <p>Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 2) -> [3, 2, 1]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 0) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 1, 0) -> [2, 1, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 5) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], -1, 1) -> [2, 1, 3]</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 2) -> [3, 2, 1]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 0) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 1, 0) -> [2, 1, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 5) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], -1, 1) -> [2, 1, 3]</li>
|
||||
* </ul>
|
||||
*
|
||||
* @param array the array to swap, may be {@code null}
|
||||
* @param offset1 the index of the first element to swap
|
||||
* @param offset2 the index of the second element to swap
|
||||
|
@ -1954,15 +1951,14 @@ public class ArrayUtils {
|
|||
* does nothing for a {@code null} or empty input array or for overflow indices.
|
||||
* Negative indices are promoted to 0(zero).</p>
|
||||
*
|
||||
* <p>Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 2) -> [3, 2, 1]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 0) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 1, 0) -> [2, 1, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 5) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], -1, 1) -> [2, 1, 3]</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
* Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 2) -> [3, 2, 1]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 0) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 1, 0) -> [2, 1, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 5) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], -1, 1) -> [2, 1, 3]</li>
|
||||
* </ul>
|
||||
*
|
||||
* @param array the array to swap, may be {@code null}
|
||||
* @param offset1 the index of the first element to swap
|
||||
|
@ -1983,15 +1979,14 @@ public class ArrayUtils {
|
|||
* does nothing for a {@code null} or empty input array or for overflow indices.
|
||||
* Negative indices are promoted to 0(zero).</p>
|
||||
*
|
||||
* <p>Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 2) -> [3, 2, 1]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 0) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 1, 0) -> [2, 1, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 5) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], -1, 1) -> [2, 1, 3]</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
* Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 2) -> [3, 2, 1]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 0) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 1, 0) -> [2, 1, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 5) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], -1, 1) -> [2, 1, 3]</li>
|
||||
* </ul>
|
||||
*
|
||||
* @param array the array to swap, may be {@code null}
|
||||
* @param offset1 the index of the first element to swap
|
||||
|
@ -2012,15 +2007,14 @@ public class ArrayUtils {
|
|||
* does nothing for a {@code null} or empty input array or for overflow indices.
|
||||
* Negative indices are promoted to 0(zero).</p>
|
||||
*
|
||||
* <p>Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 2) -> [3, 2, 1]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 0) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 1, 0) -> [2, 1, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 5) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], -1, 1) -> [2, 1, 3]</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
* Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 2) -> [3, 2, 1]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 0) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 1, 0) -> [2, 1, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 5) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], -1, 1) -> [2, 1, 3]</li>
|
||||
* </ul>
|
||||
*
|
||||
* @param array the array to swap, may be {@code null}
|
||||
* @param offset1 the index of the first element to swap
|
||||
|
@ -2041,15 +2035,14 @@ public class ArrayUtils {
|
|||
* does nothing for a {@code null} or empty input array or for overflow indices.
|
||||
* Negative indices are promoted to 0(zero).</p>
|
||||
*
|
||||
* <p>Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 2) -> [3, 2, 1]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 0) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 1, 0) -> [2, 1, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 5) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], -1, 1) -> [2, 1, 3]</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
* Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 2) -> [3, 2, 1]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 0) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 1, 0) -> [2, 1, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 5) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], -1, 1) -> [2, 1, 3]</li>
|
||||
* </ul>
|
||||
*
|
||||
* @param array the array to swap, may be {@code null}
|
||||
* @param offset1 the index of the first element to swap
|
||||
|
@ -2070,15 +2063,14 @@ public class ArrayUtils {
|
|||
* does nothing for a {@code null} or empty input array or for overflow indices.
|
||||
* Negative indices are promoted to 0(zero).</p>
|
||||
*
|
||||
* <p>Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 2) -> [3, 2, 1]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 0) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 1, 0) -> [2, 1, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 5) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], -1, 1) -> [2, 1, 3]</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
* Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 2) -> [3, 2, 1]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 0) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 1, 0) -> [2, 1, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], 0, 5) -> [1, 2, 3]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3], -1, 1) -> [2, 1, 3]</li>
|
||||
* </ul>
|
||||
*
|
||||
* @param array the array to swap, may be {@code null}
|
||||
* @param offset1 the index of the first element to swap
|
||||
|
@ -2101,15 +2093,14 @@ public class ArrayUtils {
|
|||
* swap is stopped at the end of the array and as many as possible elements
|
||||
* are swapped.</p>
|
||||
*
|
||||
* <p>Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([true, false, true, false], 0, 2, 1) -> [true, false, true, false]</li>
|
||||
* <li>ArrayUtils.swap([true, false, true, false], 0, 0, 1) -> [true, false, true, false]</li>
|
||||
* <li>ArrayUtils.swap([true, false, true, false], 0, 2, 2) -> [true, false, true, false]</li>
|
||||
* <li>ArrayUtils.swap([true, false, true, false], -3, 2, 2) -> [true, false, true, false]</li>
|
||||
* <li>ArrayUtils.swap([true, false, true, false], 0, 3, 3) -> [false, false, true, true]</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
* Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([true, false, true, false], 0, 2, 1) -> [true, false, true, false]</li>
|
||||
* <li>ArrayUtils.swap([true, false, true, false], 0, 0, 1) -> [true, false, true, false]</li>
|
||||
* <li>ArrayUtils.swap([true, false, true, false], 0, 2, 2) -> [true, false, true, false]</li>
|
||||
* <li>ArrayUtils.swap([true, false, true, false], -3, 2, 2) -> [true, false, true, false]</li>
|
||||
* <li>ArrayUtils.swap([true, false, true, false], 0, 3, 3) -> [false, false, true, true]</li>
|
||||
* </ul>
|
||||
*
|
||||
* @param array the array to swap, may be {@code null}
|
||||
* @param offset1 the index of the first element in the series to swap
|
||||
|
@ -2144,15 +2135,14 @@ public class ArrayUtils {
|
|||
* swap is stopped at the end of the array and as many as possible elements
|
||||
* are swapped.</p>
|
||||
*
|
||||
* <p>Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 2, 1) -> [3, 2, 1, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 0, 1) -> [1, 2, 3, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 2, 0, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], -3, 2, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 3, 3) -> [4, 2, 3, 1]</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
* Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 2, 1) -> [3, 2, 1, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 0, 1) -> [1, 2, 3, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 2, 0, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], -3, 2, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 3, 3) -> [4, 2, 3, 1]</li>
|
||||
* </ul>
|
||||
*
|
||||
* @param array the array to swap, may be {@code null}
|
||||
* @param offset1 the index of the first element in the series to swap
|
||||
|
@ -2187,15 +2177,14 @@ public class ArrayUtils {
|
|||
* swap is stopped at the end of the array and as many as possible elements
|
||||
* are swapped.</p>
|
||||
*
|
||||
* <p>Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 2, 1) -> [3, 2, 1, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 0, 1) -> [1, 2, 3, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 2, 0, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], -3, 2, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 3, 3) -> [4, 2, 3, 1]</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
* Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 2, 1) -> [3, 2, 1, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 0, 1) -> [1, 2, 3, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 2, 0, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], -3, 2, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 3, 3) -> [4, 2, 3, 1]</li>
|
||||
* </ul>
|
||||
*
|
||||
* @param array the array to swap, may be {@code null}
|
||||
* @param offset1 the index of the first element in the series to swap
|
||||
|
@ -2229,16 +2218,15 @@ public class ArrayUtils {
|
|||
* of the sub-arrays to swap falls outside of the given array, then the
|
||||
* swap is stopped at the end of the array and as many as possible elements
|
||||
* are swapped.</p>
|
||||
*
|
||||
* <p>Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 2, 1) -> [3, 2, 1, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 0, 1) -> [1, 2, 3, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 2, 0, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], -3, 2, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 3, 3) -> [4, 2, 3, 1]</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 2, 1) -> [3, 2, 1, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 0, 1) -> [1, 2, 3, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 2, 0, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], -3, 2, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 3, 3) -> [4, 2, 3, 1]</li>
|
||||
* </ul>
|
||||
*
|
||||
* @param array the array to swap, may be {@code null}
|
||||
* @param offset1 the index of the first element in the series to swap
|
||||
|
@ -2273,15 +2261,14 @@ public class ArrayUtils {
|
|||
* swap is stopped at the end of the array and as many as possible elements
|
||||
* are swapped.</p>
|
||||
*
|
||||
* <p>Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 2, 1) -> [3, 2, 1, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 0, 1) -> [1, 2, 3, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 2, 0, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], -3, 2, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 3, 3) -> [4, 2, 3, 1]</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
* Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 2, 1) -> [3, 2, 1, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 0, 1) -> [1, 2, 3, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 2, 0, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], -3, 2, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 3, 3) -> [4, 2, 3, 1]</li>
|
||||
* </ul>
|
||||
*
|
||||
* @param array the array to swap, may be {@code null}
|
||||
* @param offset1 the index of the first element in the series to swap
|
||||
|
@ -2317,15 +2304,14 @@ public class ArrayUtils {
|
|||
* swap is stopped at the end of the array and as many as possible elements
|
||||
* are swapped.</p>
|
||||
*
|
||||
* <p>Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 2, 1) -> [3, 2, 1, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 0, 1) -> [1, 2, 3, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 2, 0, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], -3, 2, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 3, 3) -> [4, 2, 3, 1]</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
* Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 2, 1) -> [3, 2, 1, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 0, 1) -> [1, 2, 3, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 2, 0, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], -3, 2, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 3, 3) -> [4, 2, 3, 1]</li>
|
||||
* </ul>
|
||||
*
|
||||
* @param array the array to swap, may be {@code null}
|
||||
* @param offset1 the index of the first element in the series to swap
|
||||
|
@ -2360,15 +2346,14 @@ public class ArrayUtils {
|
|||
* swap is stopped at the end of the array and as many as possible elements
|
||||
* are swapped.</p>
|
||||
*
|
||||
* <p>Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 2, 1) -> [3, 2, 1, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 0, 1) -> [1, 2, 3, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 2, 0, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], -3, 2, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 3, 3) -> [4, 2, 3, 1]</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
* Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 2, 1) -> [3, 2, 1, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 0, 1) -> [1, 2, 3, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 2, 0, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], -3, 2, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 3, 3) -> [4, 2, 3, 1]</li>
|
||||
* </ul>
|
||||
*
|
||||
* @param array the array to swap, may be {@code null}
|
||||
* @param offset1 the index of the first element in the series to swap
|
||||
|
@ -2403,15 +2388,14 @@ public class ArrayUtils {
|
|||
* swap is stopped at the end of the array and as many as possible elements
|
||||
* are swapped.</p>
|
||||
*
|
||||
* <p>Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap(["1", "2", "3", "4"], 0, 2, 1) -> ["3", "2", "1", "4"]</li>
|
||||
* <li>ArrayUtils.swap(["1", "2", "3", "4"], 0, 0, 1) -> ["1", "2", "3", "4"]</li>
|
||||
* <li>ArrayUtils.swap(["1", "2", "3", "4"], 2, 0, 2) -> ["3", "4", "1", "2"]</li>
|
||||
* <li>ArrayUtils.swap(["1", "2", "3", "4"], -3, 2, 2) -> ["3", "4", "1", "2"]</li>
|
||||
* <li>ArrayUtils.swap(["1", "2", "3", "4"], 0, 3, 3) -> ["4", "2", "3", "1"]</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
* Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap(["1", "2", "3", "4"], 0, 2, 1) -> ["3", "2", "1", "4"]</li>
|
||||
* <li>ArrayUtils.swap(["1", "2", "3", "4"], 0, 0, 1) -> ["1", "2", "3", "4"]</li>
|
||||
* <li>ArrayUtils.swap(["1", "2", "3", "4"], 2, 0, 2) -> ["3", "4", "1", "2"]</li>
|
||||
* <li>ArrayUtils.swap(["1", "2", "3", "4"], -3, 2, 2) -> ["3", "4", "1", "2"]</li>
|
||||
* <li>ArrayUtils.swap(["1", "2", "3", "4"], 0, 3, 3) -> ["4", "2", "3", "1"]</li>
|
||||
* </ul>
|
||||
*
|
||||
* @param array the array to swap, may be {@code null}
|
||||
* @param offset1 the index of the first element in the series to swap
|
||||
|
@ -2446,15 +2430,14 @@ public class ArrayUtils {
|
|||
* swap is stopped at the end of the array and as many as possible elements
|
||||
* are swapped.</p>
|
||||
*
|
||||
* <p>Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 2, 1) -> [3, 2, 1, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 0, 1) -> [1, 2, 3, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 2, 0, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], -3, 2, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 3, 3) -> [4, 2, 3, 1]</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
* Examples:
|
||||
* <ul>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 2, 1) -> [3, 2, 1, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 0, 1) -> [1, 2, 3, 4]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 2, 0, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], -3, 2, 2) -> [3, 4, 1, 2]</li>
|
||||
* <li>ArrayUtils.swap([1, 2, 3, 4], 0, 3, 3) -> [4, 2, 3, 1]</li>
|
||||
* </ul>
|
||||
*
|
||||
* @param array the array to swap, may be {@code null}
|
||||
* @param offset1 the index of the first element in the series to swap
|
||||
|
|
|
@ -159,6 +159,7 @@ public class MethodUtils {
|
|||
* </p>
|
||||
*
|
||||
* @param object invoke method on this object
|
||||
* @param forceAccess force access to invoke method even if it's not accessible
|
||||
* @param methodName get method with this name
|
||||
* @param args use these arguments - treat null as empty array
|
||||
* @return The value returned by the invoked method
|
||||
|
|
|
@ -544,6 +544,13 @@ public class FastDatePrinter implements DatePrinter, Serializable {
|
|||
}
|
||||
|
||||
/**
|
||||
* Performs the formatting by applying the rules to the
|
||||
* specified calendar.
|
||||
*
|
||||
* @param calendar the calendar to format
|
||||
* @param buf the buffer to format into
|
||||
* @return the specified string buffer
|
||||
*
|
||||
* @deprecated use {@link #format(Calendar)} or {@link #format(Calendar, Appendable)}
|
||||
*/
|
||||
@Deprecated
|
||||
|
|
Loading…
Reference in New Issue