Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.util.ArrayUtils Class Reference

List of all members.

Static Public Member Functions

static< T > List< T > getInstances (Object[] objects, Class< T > clazz)
static< T > List< T > getAdaptableObjects (Object[] objects, Class<?extends T > clazz)
static< T > List< T > getAdaptableObjects (Object[] objects, Class<?extends T > clazz, IAdapterManager adapterManager)

Detailed Description

Author:
Björn Kahlert
Stefan Rossbach
Maria Spiering

Member Function Documentation

static <T> List<T> de.fu_berlin.inf.dpp.util.ArrayUtils.getAdaptableObjects ( Object[]  objects,
Class<?extends T >  clazz 
) [static]

Tries to adapt each object to the given class.

Parameters:
objectsobjects that are tried to adapted
clazzclass to adapt each object to
Returns:
all objects that were adapted or null if the object array is null
Deprecated:
use getAdaptableObjects(Object[] objects, Class clazz, IAdapterManager adapterManager)
static <T> List<T> de.fu_berlin.inf.dpp.util.ArrayUtils.getAdaptableObjects ( Object[]  objects,
Class<?extends T >  clazz,
IAdapterManager  adapterManager 
) [static]

Tries to adapt each object to the given class.

Parameters:
objectsobjects that are tried to adapted
clazzclass to adapt each object to
adapterManagerthe adapterManager that is used to adapt the objects
Returns:
all objects that were adapted or null if the object array is null
static <T> List<T> de.fu_berlin.inf.dpp.util.ArrayUtils.getInstances ( Object[]  objects,
Class< T >  clazz 
) [static]

Returns a list of elements that are instances of this class.

Parameters:
objects
clazz
Returns:
all objects that are instances of this class or null if the object array is null
 All Classes Namespaces Files Functions Variables Enumerations