Change tabbing for everything....
[IRC.git] / Robust / src / Util / Relation.java
index eea6f68a512d6cfb02d141bfe41aaed9f516ce1b..00446b5c53a05d66685188091ddc3a0dd7bb09b2 100644 (file)
@@ -3,43 +3,43 @@ import java.util.*;
 
 
 public class Relation {
-    private Hashtable table;
-    int size;
+  private Hashtable table;
+  int size;
 
-    public Relation() {
-       table=new Hashtable();
-       size=0;
-    }
+  public Relation() {
+    table=new Hashtable();
+    size=0;
+  }
 
-    public int size() {
-       return size;
-    }
+  public int size() {
+    return size;
+  }
 
-    public boolean containsKey(Object o) {
-       return table.containsKey(o);
-    }
+  public boolean containsKey(Object o) {
+    return table.containsKey(o);
+  }
 
-    public Set keySet() {
-       return table.keySet();
-    }
+  public Set keySet() {
+    return table.keySet();
+  }
 
-    public synchronized boolean put(Object key, Object value) {
-       HashSet s;
-       if (table.containsKey(key)) {
-           s=(HashSet) table.get(key);
-       } else {
-           s=new HashSet();
-           table.put(key,s);
-       }
-       if (!s.contains(value)) {
-           size++;
-           s.add(value);
-           return true;
-       } else
-           return false;
-    }
-    
-    public Set get(Object key) {
-       return (Set)table.get(key);
+  public synchronized boolean put(Object key, Object value) {
+    HashSet s;
+    if (table.containsKey(key)) {
+      s=(HashSet) table.get(key);
+    } else {
+      s=new HashSet();
+      table.put(key,s);
     }
+    if (!s.contains(value)) {
+      size++;
+      s.add(value);
+      return true;
+    } else
+      return false;
+  }
+
+  public Set get(Object key) {
+    return (Set)table.get(key);
+  }
 }