public abstract int hashCode ()

Implementing: java.util.Collection

Returns the hash code value for this list. The hash code of a list is defined to be the result of the following calculation:


     int hashCode = 1;
     for (E e : list)
         hashCode = 31*hashCode + (e==null ? 0 : e.hashCode());
 
This ensures that list1.equals(list2) implies that list1.hashCode()==list2.hashCode() for any two lists, list1 and list2, as required by the general contract of Object.hashCode.

Returns:  the hash code value for this list

See also:
Object.equals(Object), equals(Object)