Add the last missing since tags for upcoming release 3.2

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1552679 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benedikt Ritter 2013-12-20 14:08:03 +00:00
parent dbb6d6898a
commit 3022375ff4
2 changed files with 10 additions and 0 deletions

View File

@ -1567,6 +1567,7 @@ public static void reverse(final boolean[] array) {
* @param endIndexExclusive * @param endIndexExclusive
* elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no * elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no
* change. Overvalue (>array.length) is demoted to array length. * change. Overvalue (>array.length) is demoted to array length.
* @since 3.2
*/ */
public static void reverse(final boolean[] array, int startIndexInclusive, int endIndexExclusive) { public static void reverse(final boolean[] array, int startIndexInclusive, int endIndexExclusive) {
if (array == null) { if (array == null) {
@ -1601,6 +1602,7 @@ public static void reverse(final boolean[] array, int startIndexInclusive, int e
* @param endIndexExclusive * @param endIndexExclusive
* elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no * elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no
* change. Overvalue (>array.length) is demoted to array length. * change. Overvalue (>array.length) is demoted to array length.
* @since 3.2
*/ */
public static void reverse(final byte[] array, int startIndexInclusive, int endIndexExclusive) { public static void reverse(final byte[] array, int startIndexInclusive, int endIndexExclusive) {
if (array == null) { if (array == null) {
@ -1635,6 +1637,7 @@ public static void reverse(final byte[] array, int startIndexInclusive, int endI
* @param endIndexExclusive * @param endIndexExclusive
* elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no * elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no
* change. Overvalue (>array.length) is demoted to array length. * change. Overvalue (>array.length) is demoted to array length.
* @since 3.2
*/ */
public static void reverse(final char[] array, int startIndexInclusive, int endIndexExclusive) { public static void reverse(final char[] array, int startIndexInclusive, int endIndexExclusive) {
if (array == null) { if (array == null) {
@ -1669,6 +1672,7 @@ public static void reverse(final char[] array, int startIndexInclusive, int endI
* @param endIndexExclusive * @param endIndexExclusive
* elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no * elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no
* change. Overvalue (>array.length) is demoted to array length. * change. Overvalue (>array.length) is demoted to array length.
* @since 3.2
*/ */
public static void reverse(final double[] array, int startIndexInclusive, int endIndexExclusive) { public static void reverse(final double[] array, int startIndexInclusive, int endIndexExclusive) {
if (array == null) { if (array == null) {
@ -1703,6 +1707,7 @@ public static void reverse(final double[] array, int startIndexInclusive, int en
* @param endIndexExclusive * @param endIndexExclusive
* elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no * elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no
* change. Overvalue (>array.length) is demoted to array length. * change. Overvalue (>array.length) is demoted to array length.
* @since 3.2
*/ */
public static void reverse(final float[] array, int startIndexInclusive, int endIndexExclusive) { public static void reverse(final float[] array, int startIndexInclusive, int endIndexExclusive) {
if (array == null) { if (array == null) {
@ -1737,6 +1742,7 @@ public static void reverse(final float[] array, int startIndexInclusive, int end
* @param endIndexExclusive * @param endIndexExclusive
* elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no * elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no
* change. Overvalue (>array.length) is demoted to array length. * change. Overvalue (>array.length) is demoted to array length.
* @since 3.2
*/ */
public static void reverse(final int[] array, int startIndexInclusive, int endIndexExclusive) { public static void reverse(final int[] array, int startIndexInclusive, int endIndexExclusive) {
if (array == null) { if (array == null) {
@ -1771,6 +1777,7 @@ public static void reverse(final int[] array, int startIndexInclusive, int endIn
* @param endIndexExclusive * @param endIndexExclusive
* elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no * elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no
* change. Overvalue (>array.length) is demoted to array length. * change. Overvalue (>array.length) is demoted to array length.
* @since 3.2
*/ */
public static void reverse(final long[] array, int startIndexInclusive, int endIndexExclusive) { public static void reverse(final long[] array, int startIndexInclusive, int endIndexExclusive) {
if (array == null) { if (array == null) {
@ -1805,6 +1812,7 @@ public static void reverse(final long[] array, int startIndexInclusive, int endI
* @param endIndexExclusive * @param endIndexExclusive
* elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no * elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no
* change. Overvalue (>array.length) is demoted to array length. * change. Overvalue (>array.length) is demoted to array length.
* @since 3.2
*/ */
public static void reverse(final Object[] array, int startIndexInclusive, int endIndexExclusive) { public static void reverse(final Object[] array, int startIndexInclusive, int endIndexExclusive) {
if (array == null) { if (array == null) {
@ -1839,6 +1847,7 @@ public static void reverse(final Object[] array, int startIndexInclusive, int en
* @param endIndexExclusive * @param endIndexExclusive
* elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no * elements up to endIndex-1 are reversed in the array. Undervalue (< start index) results in no
* change. Overvalue (>array.length) is demoted to array length. * change. Overvalue (>array.length) is demoted to array length.
* @since 3.2
*/ */
public static void reverse(final short[] array, int startIndexInclusive, int endIndexExclusive) { public static void reverse(final short[] array, int startIndexInclusive, int endIndexExclusive) {
if (array == null) { if (array == null) {

View File

@ -102,6 +102,7 @@ public static String squeeze(final String str, final String... set) {
* @param str String to look for characters in, may be null * @param str String to look for characters in, may be null
* @param set String[] set of characters to identify, may be null * @param set String[] set of characters to identify, may be null
* @return whether or not the characters in the set are in the primary string * @return whether or not the characters in the set are in the primary string
* @since 3.2
*/ */
public static boolean containsAny(final String str, final String... set) { public static boolean containsAny(final String str, final String... set) {
if (StringUtils.isEmpty(str) || deepEmpty(set)) { if (StringUtils.isEmpty(str) || deepEmpty(set)) {