com.atlassian.core.util.collection
Class ArrayUtils
java.lang.Object
com.atlassian.core.util.collection.ArrayUtils
public class ArrayUtils
- extends Object
Collection of useful Array methods
|
Method Summary |
static String[] |
add(String[] array,
String obj)
Deprecated. use Guava's ObjectArrays.concat() |
static boolean |
isContainsOneBlank(String[] array)
Checks if the array is not null, and contains one and only one element, which is blank (see StringUtils.isBlank(java.lang.String)) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayUtils
public ArrayUtils()
add
@Deprecated
public static String[] add(String[] array,
String obj)
- Deprecated. use Guava's
ObjectArrays.concat()
- Adds a string to an array and resizes the array. Method is null safe.
- Parameters:
array - - original arrayobj - - String to add
- Returns:
- an array with the new straing addded to the end
isContainsOneBlank
public static boolean isContainsOneBlank(String[] array)
- Checks if the array is not null, and contains one and only one element, which is blank (see
StringUtils.isBlank(java.lang.String))
- Parameters:
array -
- Returns:
- true or false
Copyright © 2015 Atlassian. All rights reserved.