MetaDone
metadone.util.ListUtil Class Reference

List of all members.

Static Public Member Functions

static String concatListString (List<?> list)

Static Package Functions

static public< B, A >
LinkedList< A > 
maplist (final List< B > list, final MapFct< B, A > map)
static public< T extends
Object > boolean 
areElementsUnique (List< T > lv)
static public< T extends Object > T getOneOf (Collection< T > lv)
static public< T extends
Object > List< T > 
intersect (List< T > a, List< T > b, List< T > c)

Private Member Functions

 ListUtil ()

Constructor & Destructor Documentation

metadone.util.ListUtil.ListUtil ( ) [private]

Member Function Documentation

static public<T extends Object> boolean metadone.util.ListUtil.areElementsUnique ( List< T >  lv) [static, package]
static String metadone.util.ListUtil.concatListString ( List<?>  list) [static]
Parameters:
alist (list is not null and its elements are not null)
Returns:
the concatenation of the elements as a String.
static public<T extends Object> List<T> metadone.util.ListUtil.intersect ( List< T >  a,
List< T >  b,
List< T >  c 
) [static, package]
Parameters:
<T>
a
b
cList c is used to store the result. List c is supposed to be empty and initialized. If c is null, a new linkedlist is created.
Returns:
The common elements of lists 'a' and 'b'. List 'c' is used as the result and is returned.
static public<B, A> LinkedList<A> metadone.util.ListUtil.maplist ( final List< B >  list,
final MapFct< B, A >  map 
) [static, package]

Converts a list into another list by mapping every element with the map function.

Parameters:
<B>
<A>
list
map
Returns:

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations