com.atlassian.core.util.collection
Class ArrayUtils

java.lang.Object
  extended bycom.atlassian.core.util.collection.ArrayUtils

public class ArrayUtils
extends java.lang.Object

Collection of useful Array methods


Constructor Summary
ArrayUtils()
           
 
Method Summary
static java.lang.String[] add(java.lang.String[] array, java.lang.String obj)
          Adds a string to an array and resizes the array.
static boolean isContainsOneBlank(java.lang.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
 

Constructor Detail

ArrayUtils

public ArrayUtils()
Method Detail

add

public static java.lang.String[] add(java.lang.String[] array,
                                     java.lang.String obj)
Adds a string to an array and resizes the array. Method is null safe.

Parameters:
array - - original array
obj - - String to add
Returns:
an array with the new straing addded to the end

isContainsOneBlank

public static boolean isContainsOneBlank(java.lang.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 © 2008 Atlassian Pty Ltd. All Rights Reserved.