missing class
authorbdemsky <bdemsky>
Mon, 4 Jan 2010 05:16:53 +0000 (05:16 +0000)
committerbdemsky <bdemsky>
Mon, 4 Jan 2010 05:16:53 +0000 (05:16 +0000)
Robust/TransSim/ObjIndex.java [new file with mode: 0644]

diff --git a/Robust/TransSim/ObjIndex.java b/Robust/TransSim/ObjIndex.java
new file mode 100644 (file)
index 0000000..2451540
--- /dev/null
@@ -0,0 +1,17 @@
+public class ObjIndex {
+  int object;
+  int index;
+  public ObjIndex(int object, int index) {
+    this.object=object;
+    this.index=index;
+  }
+
+  public boolean equals(Object o) {
+    ObjIndex other=(ObjIndex)o;
+    return (other.object==object)&&(other.index==index);
+  }
+
+  public int hashCode() {
+    return object^index;
+  }
+}
\ No newline at end of file