1 16 package org.apache.commons.collections.map; 17 18 import java.io.IOException ; 19 import java.io.ObjectInputStream ; 20 import java.io.ObjectOutputStream ; 21 import java.io.Serializable ; 22 import java.util.Map ; 23 24 37 public class HashedMap 38 extends AbstractHashedMap implements Serializable , Cloneable { 39 40 41 private static final long serialVersionUID = -1788199231038721040L; 42 43 46 public HashedMap() { 47 super(DEFAULT_CAPACITY, DEFAULT_LOAD_FACTOR, DEFAULT_THRESHOLD); 48 } 49 50 56 public HashedMap(int initialCapacity) { 57 super(initialCapacity); 58 } 59 60 69 public HashedMap(int initialCapacity, float loadFactor) { 70 super(initialCapacity, loadFactor); 71 } 72 73 79 public HashedMap(Map map) { 80 super(map); 81 } 82 83 89 public Object clone() { 90 return super.clone(); 91 } 92 93 96 private void writeObject(ObjectOutputStream out) throws IOException { 97 out.defaultWriteObject(); 98 doWriteObject(out); 99 } 100 101 104 private void readObject(ObjectInputStream in) throws IOException , ClassNotFoundException { 105 in.defaultReadObject(); 106 doReadObject(in); 107 } 108 109 } 110 | Popular Tags |