1 7 8 package java.util; 9 10 97 98 public class LinkedHashSet<E> 99 extends HashSet <E> 100 implements Set <E>, Cloneable , java.io.Serializable { 101 102 private static final long serialVersionUID = -2851667679971038690L; 103 104 113 public LinkedHashSet(int initialCapacity, float loadFactor) { 114 super(initialCapacity, loadFactor, true); 115 } 116 117 125 public LinkedHashSet(int initialCapacity) { 126 super(initialCapacity, .75f, true); 127 } 128 129 133 public LinkedHashSet() { 134 super(16, .75f, true); 135 } 136 137 147 public LinkedHashSet(Collection <? extends E> c) { 148 super(Math.max(2*c.size(), 11), .75f, true); 149 addAll(c); 150 } 151 } 152 | Popular Tags |