LinkedHashmap is also a HashMap, but inside has maintained a bidirectional linked list, in fact, basically and hashMap almost.
Public Class LinkedHashmap Extends HashMap Using LinkedHashMap to get a copy map mAp mAp mAp mAP like the original Map;
LinkedHashSet is simpler, the code is very simple, is some constructor, when you design Hashset, you have already stayed in LinkedhashSet, this design is really, I don't think it is good! It is better to re-declare a LinkedHashmap.
public class LinkedHashSet extends HashSet implements Set, Cloneable, java.io.Serializable {public LinkedHashSet (int initialCapacity, float loadFactor) {super (initialCapacity, loadFactor, true);} public LinkedHashSet (int initialCapacity) {super (initialCapacity, .75f, PUBLIC LinkedHashSet () {Super (16, .75f, true); public linkedhashset (Collection C) {Super (Math.max (2 * C.Size (), 11), .75f, true); Addall (c);}}}}
To explain that the status of these two classes is not a linkedList, and the opportunity to apply is relatively small.