org.thymeleaf.util
Class ArrayUtils

Object
  extended by org.thymeleaf.util.ArrayUtils

public final class ArrayUtils
extends Object

Since:
1.0
Author:
Daniel Fernández

Method Summary
static boolean contains(Object[] target, Object element)
           
static boolean containsAll(Object[] target, java.util.Collection<?> elements)
           
static boolean containsAll(Object[] target, Object[] elements)
           
static char[] copyOf(char[] original, int newLength)
           
static
<T> T[]
copyOf(T[] original, int newLength)
           
static
<T,X> X[]
copyOf(T[] original, int newLength, Class<? extends X[]> newType)
           
static char[] copyOfRange(char[] original, int from, int to)
           
static boolean isEmpty(Object[] target)
           
static int length(Object[] target)
           
static Object[] toArray(Object target)
           
static Object[] toBooleanArray(Object target)
           
static Object[] toDoubleArray(Object target)
           
static Object[] toFloatArray(Object target)
           
static Object[] toIntegerArray(Object target)
           
static Object[] toLongArray(Object target)
           
static Object[] toStringArray(Object target)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toArray

public static Object[] toArray(Object target)

toStringArray

public static Object[] toStringArray(Object target)

toIntegerArray

public static Object[] toIntegerArray(Object target)

toLongArray

public static Object[] toLongArray(Object target)

toDoubleArray

public static Object[] toDoubleArray(Object target)

toFloatArray

public static Object[] toFloatArray(Object target)

toBooleanArray

public static Object[] toBooleanArray(Object target)

length

public static int length(Object[] target)

isEmpty

public static boolean isEmpty(Object[] target)

contains

public static boolean contains(Object[] target,
                               Object element)

containsAll

public static boolean containsAll(Object[] target,
                                  Object[] elements)

containsAll

public static boolean containsAll(Object[] target,
                                  java.util.Collection<?> elements)

copyOf

public static <T,X> X[] copyOf(T[] original,
                               int newLength,
                               Class<? extends X[]> newType)

copyOf

public static <T> T[] copyOf(T[] original,
                             int newLength)

copyOf

public static char[] copyOf(char[] original,
                            int newLength)

copyOfRange

public static char[] copyOfRange(char[] original,
                                 int from,
                                 int to)


Copyright © 2012 The THYMELEAF team. All Rights Reserved.