Top Constructors Methods
com.mchange.v1.util

public final Class ListUtils

extends Object
Class Inheritance
Imports
java.util.*

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean
equivalent(List<E> a, List<E> b)

public static int
hashContents(List<E> 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

public static List<E>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ListUtilsback to summary
public ListUtils()

Method Detail

equivalentback to summary
public static boolean equivalent(List<E> a, List<E> b)
hashContentsback to summary
public static int hashContents(List<E> 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

oneElementUnmodifiableListback to summary
public static List<E> oneElementUnmodifiableList(final Object elem)