com.javadocking.util
Class CollectionUtil

java.lang.Object
  extended by com.javadocking.util.CollectionUtil

public class CollectionUtil
extends java.lang.Object

This class contains a collection of static utility methods for java.util.Collection objects.

Author:
Heidi Rakels.

Method Summary
static boolean sameElements(java.util.List firstList, java.util.List secondList)
          Determines if the given lists contain the same elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sameElements

public static boolean sameElements(java.util.List firstList,
                                   java.util.List secondList)
Determines if the given lists contain the same elements. We suppose that all the elements of the given lists are different.

Parameters:
firstList - The first list.
secondList - The second list.
Returns:
True if the given lists contain the same elements, false otherwise.