Javadoc fixes, from Fredrik Westermarck
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137132 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c32f83c7bb
commit
c248c060c6
|
@ -64,7 +64,8 @@ import org.apache.commons.lang.builder.ToStringStyle;
|
|||
*
|
||||
* @author <a href="mailto:scolebourne@apache.org">Stephen Colebourne</a>
|
||||
* @author Moritz Petersen
|
||||
* @version $Id: ArrayUtils.java,v 1.2 2002/11/14 22:29:25 scolebourne Exp $
|
||||
* @author <a href="mailto:fredrik@westermarck.com">Fredrik Westermarck</a>
|
||||
* @version $Id: ArrayUtils.java,v 1.3 2002/11/15 00:25:45 scolebourne Exp $
|
||||
*/
|
||||
public class ArrayUtils {
|
||||
|
||||
|
@ -397,7 +398,8 @@ public class ArrayUtils {
|
|||
*
|
||||
* @param array1 the first array, may be <code>null</code>
|
||||
* @param array2 the second array, may be <code>null</code>
|
||||
* @param true if length of arrays matches, treating <code>null</code> as an empty array
|
||||
* @return <code>true</code> if length of arrays matches, treating
|
||||
* <code>null</code> as an empty array
|
||||
*/
|
||||
public static boolean isSameLength(Object[] array1, Object[] array2) {
|
||||
if ((array1 == null && array2 != null && array2.length > 0) ||
|
||||
|
@ -415,7 +417,8 @@ public class ArrayUtils {
|
|||
*
|
||||
* @param array1 the first array, may be <code>null</code>
|
||||
* @param array2 the second array, may be <code>null</code>
|
||||
* @param true if length of arrays matches, treating <code>null</code> as an empty array
|
||||
* @return <code>true</code> if length of arrays matches, treating
|
||||
* <code>null</code> as an empty array
|
||||
*/
|
||||
public static boolean isSameLength(long[] array1, long[] array2) {
|
||||
if ((array1 == null && array2 != null && array2.length > 0) ||
|
||||
|
@ -433,7 +436,8 @@ public class ArrayUtils {
|
|||
*
|
||||
* @param array1 the first array, may be <code>null</code>
|
||||
* @param array2 the second array, may be <code>null</code>
|
||||
* @param true if length of arrays matches, treating <code>null</code> as an empty array
|
||||
* @return <code>true</code> if length of arrays matches, treating
|
||||
* <code>null</code> as an empty array
|
||||
*/
|
||||
public static boolean isSameLength(int[] array1, int[] array2) {
|
||||
if ((array1 == null && array2 != null && array2.length > 0) ||
|
||||
|
@ -451,7 +455,8 @@ public class ArrayUtils {
|
|||
*
|
||||
* @param array1 the first array, may be <code>null</code>
|
||||
* @param array2 the second array, may be <code>null</code>
|
||||
* @param true if length of arrays matches, treating <code>null</code> as an empty array
|
||||
* @return <code>true</code> if length of arrays matches, treating
|
||||
* <code>null</code> as an empty array
|
||||
*/
|
||||
public static boolean isSameLength(short[] array1, short[] array2) {
|
||||
if ((array1 == null && array2 != null && array2.length > 0) ||
|
||||
|
@ -469,7 +474,8 @@ public class ArrayUtils {
|
|||
*
|
||||
* @param array1 the first array, may be <code>null</code>
|
||||
* @param array2 the second array, may be <code>null</code>
|
||||
* @param true if length of arrays matches, treating <code>null</code> as an empty array
|
||||
* @return <code>true</code> if length of arrays matches, treating
|
||||
* <code>null</code> as an empty array
|
||||
*/
|
||||
public static boolean isSameLength(byte[] array1, byte[] array2) {
|
||||
if ((array1 == null && array2 != null && array2.length > 0) ||
|
||||
|
@ -487,7 +493,8 @@ public class ArrayUtils {
|
|||
*
|
||||
* @param array1 the first array, may be <code>null</code>
|
||||
* @param array2 the second array, may be <code>null</code>
|
||||
* @param true if length of arrays matches, treating <code>null</code> as an empty array
|
||||
* @return <code>true</code> if length of arrays matches, treating
|
||||
* <code>null</code> as an empty array
|
||||
*/
|
||||
public static boolean isSameLength(double[] array1, double[] array2) {
|
||||
if ((array1 == null && array2 != null && array2.length > 0) ||
|
||||
|
@ -505,7 +512,8 @@ public class ArrayUtils {
|
|||
*
|
||||
* @param array1 the first array, may be <code>null</code>
|
||||
* @param array2 the second array, may be <code>null</code>
|
||||
* @param true if length of arrays matches, treating <code>null</code> as an empty array
|
||||
* @return <code>true</code> if length of arrays matches, treating
|
||||
* <code>null</code> as an empty array
|
||||
*/
|
||||
public static boolean isSameLength(float[] array1, float[] array2) {
|
||||
if ((array1 == null && array2 != null && array2.length > 0) ||
|
||||
|
@ -523,7 +531,8 @@ public class ArrayUtils {
|
|||
*
|
||||
* @param array1 the first array, may be <code>null</code>
|
||||
* @param array2 the second array, may be <code>null</code>
|
||||
* @param true if length of arrays matches, treating <code>null</code> as an empty array
|
||||
* @return <code>true</code> if length of arrays matches, treating
|
||||
* <code>null</code> as an empty array
|
||||
*/
|
||||
public static boolean isSameLength(boolean[] array1, boolean[] array2) {
|
||||
if ((array1 == null && array2 != null && array2.length > 0) ||
|
||||
|
@ -540,7 +549,7 @@ public class ArrayUtils {
|
|||
*
|
||||
* @param array1 the first array, must not be <code>null</code>
|
||||
* @param array2 the second array, must not be <code>null</code>
|
||||
* @param true if type of arrays matches
|
||||
* @return <code>true</code> if type of arrays matches
|
||||
* @throws IllegalArgumentException if either array is <code>null</code>
|
||||
*/
|
||||
public static boolean isSameType(Object array1, Object array2) {
|
||||
|
|
|
@ -73,7 +73,7 @@ import java.util.Iterator;
|
|||
* @author <a href="mailto:rand_mcneely@yahoo.com">Rand McNeely</a>
|
||||
* @author <a href="mailto:scolebourne@joda.org">Stephen Colebourne</a>
|
||||
* @author <a href="mailto:fredrik@westermarck.com">Fredrik Westermarck</a>
|
||||
* @version $Id: StringUtils.java,v 1.23 2002/11/15 00:06:40 scolebourne Exp $
|
||||
* @version $Id: StringUtils.java,v 1.24 2002/11/15 00:25:45 scolebourne Exp $
|
||||
*/
|
||||
public class StringUtils {
|
||||
|
||||
|
@ -1525,7 +1525,7 @@ public class StringUtils {
|
|||
* Returns either the passed in Object as a String, or,
|
||||
* if the Object is <code>null</code>, an empty String.
|
||||
*
|
||||
* @param str the Object to check
|
||||
* @param obj the Object to check
|
||||
* @return the passed in Object's toString, or blank if it was null
|
||||
*/
|
||||
public static String defaultString(Object obj) {
|
||||
|
|
Loading…
Reference in New Issue