utils
Class ListUtilities

java.lang.Object
  extended by utils.ListUtilities

public class ListUtilities
extends java.lang.Object

Some utilities simplifiying the work with lists.


Constructor Summary
ListUtilities()
           
 
Method Summary
static boolean contains(java.util.List<SkeletonNode> nodes, SkeletonNode node)
          Test if a list haystack contains a specified skeleton node needle.
static java.util.List copyList(java.util.List toBeCopied)
          Copy the elements of one list to a new array list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListUtilities

public ListUtilities()
Method Detail

contains

public static boolean contains(java.util.List<SkeletonNode> nodes,
                               SkeletonNode node)
                        throws InvalidSkeletonException
Test if a list haystack contains a specified skeleton node needle.

Parameters:
nodes - the haystack
node - the needle
Returns:
true if needle is contained in haystack, false if not
Throws:
InvalidSkeletonException

copyList

public static java.util.List copyList(java.util.List toBeCopied)
Copy the elements of one list to a new array list.

Parameters:
toBeCopied - the list to be copied
Returns:
a copy of the list