org.rhq.core.util.collection
Class ArrayUtils

java.lang.Object
  extended by org.rhq.core.util.collection.ArrayUtils

public class ArrayUtils
extends Object

Author:
John Mazzitelli, Joseph Marques

Constructor Summary
ArrayUtils()
           
 
Method Summary
static int[] copyOfRange(int[] arr, int from, int to)
           
static
<T> T[]
copyOfRange(T[] arr, int from, int to)
           
static int[] unwrapArray(Integer[] input)
           
static int[] unwrapCollection(Collection<Integer> input)
           
static Integer[] wrapInArray(int[] input)
           
static List<Integer> wrapInList(int[] input)
           
 
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

copyOfRange

public static <T> T[] copyOfRange(T[] arr,
                                  int from,
                                  int to)

copyOfRange

public static int[] copyOfRange(int[] arr,
                                int from,
                                int to)

unwrapCollection

public static int[] unwrapCollection(Collection<Integer> input)

unwrapArray

public static int[] unwrapArray(Integer[] input)

wrapInArray

public static Integer[] wrapInArray(int[] input)

wrapInList

public static List<Integer> wrapInList(int[] input)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.