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 23 69 public class ReferenceMap extends AbstractReferenceMap implements Serializable { 70 71 72 private static final long serialVersionUID = 1555089888138299607L; 73 74 78 public ReferenceMap() { 79 super(HARD, SOFT, DEFAULT_CAPACITY, DEFAULT_LOAD_FACTOR, false); 80 } 81 82 91 public ReferenceMap(int keyType, int valueType) { 92 super(keyType, valueType, DEFAULT_CAPACITY, DEFAULT_LOAD_FACTOR, false); 93 } 94 95 106 public ReferenceMap(int keyType, int valueType, boolean purgeValues) { 107 super(keyType, valueType, DEFAULT_CAPACITY, DEFAULT_LOAD_FACTOR, purgeValues); 108 } 109 110 122 public ReferenceMap(int keyType, int valueType, int capacity, float loadFactor) { 123 super(keyType, valueType, capacity, loadFactor, false); 124 } 125 126 140 public ReferenceMap(int keyType, int valueType, int capacity, 141 float loadFactor, boolean purgeValues) { 142 super(keyType, valueType, capacity, loadFactor, purgeValues); 143 } 144 145 149 private void writeObject(ObjectOutputStream out) throws IOException { 150 out.defaultWriteObject(); 151 doWriteObject(out); 152 } 153 154 157 private void readObject(ObjectInputStream in) throws IOException , ClassNotFoundException { 158 in.defaultReadObject(); 159 doReadObject(in); 160 } 161 162 } 163 | Popular Tags |