com.jenkov.mrpersister.util
Class CollectionUtils

java.lang.Object
  extended by com.jenkov.mrpersister.util.CollectionUtils

public class CollectionUtils
extends java.lang.Object


Constructor Summary
CollectionUtils()
           
 
Method Summary
static boolean areEqual(java.util.Collection collection1, java.util.Collection collection2)
           
static java.util.List toList(java.util.Collection collection)
          Converts the given collection to a java.util.List.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionUtils

public CollectionUtils()
Method Detail

toList

public static java.util.List toList(java.util.Collection collection)
Converts the given collection to a java.util.List.

Parameters:
collection - The collection to convert to a list.
Returns:
A java.util.List containing all of the elements from the supplied collection.

areEqual

public static boolean areEqual(java.util.Collection collection1,
                               java.util.Collection collection2)