org.objectweb.easybeans.tests.common.helper
Class ListHelper

java.lang.Object
  extended by org.objectweb.easybeans.tests.common.helper.ListHelper

public final class ListHelper
extends java.lang.Object

This helper is used to do list modifications. interceptor variable.

Author:
Eduardo Studzinski Estima de Castro, Gisele Pinheiro Souza

Constructor Summary
private ListHelper()
          Helper should have a private constructor.
 
Method Summary
static
<E> java.util.List<E>
addValues(java.util.List<E> list, E[] values)
          Creates a new list with elements of a list, plus new values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListHelper

private ListHelper()
Helper should have a private constructor.

Method Detail

addValues

public static <E> java.util.List<E> addValues(java.util.List<E> list,
                                              E[] values)
                                   throws java.lang.InstantiationException,
                                          java.lang.IllegalAccessException
Creates a new list with elements of a list, plus new values.

Type Parameters:
E - list type
Parameters:
list - current list
values - values to add
Returns:
new list with new values
Throws:
java.lang.InstantiationException - reflection exception
java.lang.IllegalAccessException - reflection exception