at.molindo.utils.collections
Class ArrayUtils

java.lang.Object
  extended by at.molindo.utils.collections.ArrayUtils

public class ArrayUtils
extends Object


Constructor Summary
ArrayUtils()
           
 
Method Summary
static
<T> boolean
empty(T[] a)
           
static boolean equals(byte[] a, byte[] a2, int off, int len)
           
static
<T> T
first(T[] a)
           
 
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

equals

public static boolean equals(byte[] a,
                             byte[] a2,
                             int off,
                             int len)

empty

public static <T> boolean empty(T[] a)
Returns:
true if a is not null and a.length > 0

first

public static <T> T first(T[] a)
Returns:
a[0] if array isn't empty
See Also:
empty(Object[])


Copyright © 2011 Molindo GmbH. All Rights Reserved.