util
Class CollectionTool
java.lang.Object
util.CollectionTool
public class CollectionTool
- extends Object
A small class consisting of static methods that deal with collections
and their daughter interfaces.
|
Method Summary |
static boolean |
compareLists(List l1,
List l2)
Compares two lists element-per-element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionTool
public CollectionTool()
compareLists
public static boolean compareLists(List l1,
List l2)
- Compares two lists element-per-element. It returns true if
- Both lists are not null.
- The list have the same number of elements in it.
- Any element in the first list is also in the second list.
- The ordering of the elements is identical.
If one compares two empty lists, of course this method returns true.