projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e7cf6e
)
missing class
author
bdemsky
<bdemsky>
Mon, 4 Jan 2010 05:16:53 +0000
(
05:16
+0000)
committer
bdemsky
<bdemsky>
Mon, 4 Jan 2010 05:16:53 +0000
(
05:16
+0000)
Robust/TransSim/ObjIndex.java
[new file with mode: 0644]
patch
|
blob
diff --git a/Robust/TransSim/ObjIndex.java
b/Robust/TransSim/ObjIndex.java
new file mode 100644
(file)
index 0000000..
2451540
--- /dev/null
+++ b/
Robust/TransSim/ObjIndex.java
@@ -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