change
authorjihoonl <jihoonl>
Sat, 23 Jan 2010 06:45:18 +0000 (06:45 +0000)
committerjihoonl <jihoonl>
Sat, 23 Jan 2010 06:45:18 +0000 (06:45 +0000)
Robust/src/ClassLibrary/JavaDSM/DistributedHashMap.java

index 5cb944cdb33fa71faa68f75f7faa6d961d3f7c25..36962e8827edb2067f90c8c3ee169fd7d78fbdc2 100644 (file)
@@ -3,6 +3,19 @@ public class DistributedHashMap {
   float loadFactor;
   int secondcapacity;
        int size;
+  int DEFAULT_INITIALCAPACITY;
+  int DEFAULT_SECONDCAPACITY;
+  float DEFAULT_LOADFACTOR;
+
+  public DistributedHashMap() 
+  {
+    DEFAULT_INITIALCAPACITY = 500;
+    DEFAULT_SECONDCAPACITY = 500;
+    DEFAULT_LOADFACTOR = 0.75f;
+
+    init(DEFAULT_INITIALCAPACITY,DEFAULT_SECONDCAPACITY,DEFAULT_LOADFACTOR);
+    size = 0;
+  }
 
   public DistributedHashMap(int initialCapacity, int secondcapacity, float loadFactor) {
     init(initialCapacity, secondcapacity, loadFactor);