java.util
Class ArrayList<E>
1. This class is "unsynchronized" mean in the
Java context?
Source:
http://download.oracle.com/javase/6/docs/api.
2. "public int hashCode()
This method returns the hash code value for the object on which this method is invoked. This method returns the hash code value as an integer and is supported for the benefit of hashing based collection classes such as Hashtable, HashMap, HashSet etc. This method must be overridden in every class that overrides the equals method."
Why?
Does an ArrayList use hashCode() when processing?
How will my hashCode() algorithm affect the performance (memory use, efficiency of algorithms, CPU usage) of processing the ArrayList?
Source:
http://www.technofundo.com/tech/java/equalhash.html.
3. I am not sure how to implement a hashCode() method for my Card class, which is extended by a Deck class.