Add missing @return tags on subarray methods.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137736 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
09e2ea6cc8
commit
b10d0bbead
|
@ -81,7 +81,7 @@ import org.apache.commons.lang.builder.ToStringStyle;
|
||||||
* @author Gary Gregory
|
* @author Gary Gregory
|
||||||
* @author <a href="mailto:equinus100@hotmail.com">Ashwin S</a>
|
* @author <a href="mailto:equinus100@hotmail.com">Ashwin S</a>
|
||||||
* @since 2.0
|
* @since 2.0
|
||||||
* @version $Id: ArrayUtils.java,v 1.29 2003/12/05 23:37:18 scolebourne Exp $
|
* @version $Id: ArrayUtils.java,v 1.30 2003/12/29 01:08:38 ggregory Exp $
|
||||||
*/
|
*/
|
||||||
public class ArrayUtils {
|
public class ArrayUtils {
|
||||||
|
|
||||||
|
@ -462,6 +462,8 @@ public class ArrayUtils {
|
||||||
* returned subarray. Undervalue (< startIndex) produces
|
* returned subarray. Undervalue (< startIndex) produces
|
||||||
* empty array, overvalue (>array.length) is demoted to
|
* empty array, overvalue (>array.length) is demoted to
|
||||||
* array length.
|
* array length.
|
||||||
|
* @return a new array containing the elements between
|
||||||
|
* the start and end indices.
|
||||||
*/
|
*/
|
||||||
public static Object[] subarray(Object[] array, int startIndexInclusive, int endIndexExclusive) {
|
public static Object[] subarray(Object[] array, int startIndexInclusive, int endIndexExclusive) {
|
||||||
if (array == null) {
|
if (array == null) {
|
||||||
|
@ -498,6 +500,8 @@ public class ArrayUtils {
|
||||||
* returned subarray. Undervalue (< startIndex) produces
|
* returned subarray. Undervalue (< startIndex) produces
|
||||||
* empty array, overvalue (>array.length) is demoted to
|
* empty array, overvalue (>array.length) is demoted to
|
||||||
* array length.
|
* array length.
|
||||||
|
* @return a new array containing the elements between
|
||||||
|
* the start and end indices.
|
||||||
*/
|
*/
|
||||||
public static long[] subarray(long[] array, int startIndexInclusive, int endIndexExclusive) {
|
public static long[] subarray(long[] array, int startIndexInclusive, int endIndexExclusive) {
|
||||||
if (array == null) {
|
if (array == null) {
|
||||||
|
@ -534,6 +538,8 @@ public class ArrayUtils {
|
||||||
* returned subarray. Undervalue (< startIndex) produces
|
* returned subarray. Undervalue (< startIndex) produces
|
||||||
* empty array, overvalue (>array.length) is demoted to
|
* empty array, overvalue (>array.length) is demoted to
|
||||||
* array length.
|
* array length.
|
||||||
|
* @return a new array containing the elements between
|
||||||
|
* the start and end indices.
|
||||||
*/
|
*/
|
||||||
public static int[] subarray(int[] array, int startIndexInclusive, int endIndexExclusive) {
|
public static int[] subarray(int[] array, int startIndexInclusive, int endIndexExclusive) {
|
||||||
if (array == null) {
|
if (array == null) {
|
||||||
|
@ -570,6 +576,8 @@ public class ArrayUtils {
|
||||||
* returned subarray. Undervalue (< startIndex) produces
|
* returned subarray. Undervalue (< startIndex) produces
|
||||||
* empty array, overvalue (>array.length) is demoted to
|
* empty array, overvalue (>array.length) is demoted to
|
||||||
* array length.
|
* array length.
|
||||||
|
* @return a new array containing the elements between
|
||||||
|
* the start and end indices.
|
||||||
*/
|
*/
|
||||||
public static short[] subarray(short[] array, int startIndexInclusive, int endIndexExclusive) {
|
public static short[] subarray(short[] array, int startIndexInclusive, int endIndexExclusive) {
|
||||||
if (array == null) {
|
if (array == null) {
|
||||||
|
@ -606,6 +614,8 @@ public class ArrayUtils {
|
||||||
* returned subarray. Undervalue (< startIndex) produces
|
* returned subarray. Undervalue (< startIndex) produces
|
||||||
* empty array, overvalue (>array.length) is demoted to
|
* empty array, overvalue (>array.length) is demoted to
|
||||||
* array length.
|
* array length.
|
||||||
|
* @return a new array containing the elements between
|
||||||
|
* the start and end indices.
|
||||||
*/
|
*/
|
||||||
public static char[] subarray(char[] array, int startIndexInclusive, int endIndexExclusive) {
|
public static char[] subarray(char[] array, int startIndexInclusive, int endIndexExclusive) {
|
||||||
if (array == null) {
|
if (array == null) {
|
||||||
|
@ -642,6 +652,8 @@ public class ArrayUtils {
|
||||||
* returned subarray. Undervalue (< startIndex) produces
|
* returned subarray. Undervalue (< startIndex) produces
|
||||||
* empty array, overvalue (>array.length) is demoted to
|
* empty array, overvalue (>array.length) is demoted to
|
||||||
* array length.
|
* array length.
|
||||||
|
* @return a new array containing the elements between
|
||||||
|
* the start and end indices.
|
||||||
*/
|
*/
|
||||||
public static byte[] subarray(byte[] array, int startIndexInclusive, int endIndexExclusive) {
|
public static byte[] subarray(byte[] array, int startIndexInclusive, int endIndexExclusive) {
|
||||||
if (array == null) {
|
if (array == null) {
|
||||||
|
@ -678,6 +690,8 @@ public class ArrayUtils {
|
||||||
* returned subarray. Undervalue (< startIndex) produces
|
* returned subarray. Undervalue (< startIndex) produces
|
||||||
* empty array, overvalue (>array.length) is demoted to
|
* empty array, overvalue (>array.length) is demoted to
|
||||||
* array length.
|
* array length.
|
||||||
|
* @return a new array containing the elements between
|
||||||
|
* the start and end indices.
|
||||||
*/
|
*/
|
||||||
public static double[] subarray(double[] array, int startIndexInclusive, int endIndexExclusive) {
|
public static double[] subarray(double[] array, int startIndexInclusive, int endIndexExclusive) {
|
||||||
if (array == null) {
|
if (array == null) {
|
||||||
|
@ -714,6 +728,8 @@ public class ArrayUtils {
|
||||||
* returned subarray. Undervalue (< startIndex) produces
|
* returned subarray. Undervalue (< startIndex) produces
|
||||||
* empty array, overvalue (>array.length) is demoted to
|
* empty array, overvalue (>array.length) is demoted to
|
||||||
* array length.
|
* array length.
|
||||||
|
* @return a new array containing the elements between
|
||||||
|
* the start and end indices.
|
||||||
*/
|
*/
|
||||||
public static float[] subarray(float[] array, int startIndexInclusive, int endIndexExclusive) {
|
public static float[] subarray(float[] array, int startIndexInclusive, int endIndexExclusive) {
|
||||||
if (array == null) {
|
if (array == null) {
|
||||||
|
@ -750,6 +766,8 @@ public class ArrayUtils {
|
||||||
* returned subarray. Undervalue (< startIndex) produces
|
* returned subarray. Undervalue (< startIndex) produces
|
||||||
* empty array, overvalue (>array.length) is demoted to
|
* empty array, overvalue (>array.length) is demoted to
|
||||||
* array length.
|
* array length.
|
||||||
|
* @return a new array containing the elements between
|
||||||
|
* the start and end indices.
|
||||||
*/
|
*/
|
||||||
public static boolean[] subarray(boolean[] array, int startIndexInclusive, int endIndexExclusive) {
|
public static boolean[] subarray(boolean[] array, int startIndexInclusive, int endIndexExclusive) {
|
||||||
if (array == null) {
|
if (array == null) {
|
||||||
|
|
Loading…
Reference in New Issue