Skip navigation links


com.essbase.eas.utils
Class ArrayUtilities

java.lang.Object
  extended by com.essbase.eas.utils.ArrayUtilities


public class ArrayUtilities
extends java.lang.Object

utility methods for working with arrays.

Version:
1.00, 03/11/2002
Author:
Hank Cox

Method Summary
static java.lang.Object[] getArraySubset(java.lang.Class c, java.lang.Object[] allObjects)
          returns an array of objects of specific type from a larger array.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

getArraySubset

public static java.lang.Object[] getArraySubset(java.lang.Class c,
                                                java.lang.Object[] allObjects)
returns an array of objects of specific type from a larger array. The returned array can be safely cast to the type of the class c. Ordering is maintained.
Parameters:
c - - a class whose objects we are interested in.
allObjects - = the global set to grab the smaller set from.
Returns:
an array of objects, all guaranteed to by of type c

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.