Package com.mchange.v1.util
Class ListUtils
- java.lang.Object
-
- com.mchange.v1.util.ListUtils
-
public final class ListUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ListUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
equivalent(java.util.List a, java.util.List b)
static int
hashContents(java.util.List l)
finds a hash value which takes into account the value of all elements, such that two sets for which equivalent(a, b) returns true will hashContents() to the same valuestatic java.util.List
oneElementUnmodifiableList(java.lang.Object elem)
-
-
-
Method Detail
-
oneElementUnmodifiableList
public static java.util.List oneElementUnmodifiableList(java.lang.Object elem)
-
equivalent
public static boolean equivalent(java.util.List a, java.util.List b)
-
hashContents
public static int hashContents(java.util.List l)
finds a hash value which takes into account the value of all elements, such that two sets for which equivalent(a, b) returns true will hashContents() to the same value
-
-