diff java/src/java/util/Collections.d @ 21:9b96950f2c3c

the 'java' tree compiles on both D1-Tango and D2-Phobos
author Frank Benoit <benoit@tionex.de>
date Thu, 19 Mar 2009 20:38:55 +0100
parents eb8ff453285d
children
line wrap: on
line diff
--- a/java/src/java/util/Collections.d	Wed Mar 18 12:10:17 2009 +0100
+++ b/java/src/java/util/Collections.d	Thu Mar 19 20:38:55 2009 +0100
@@ -139,8 +139,8 @@
         public bool     containsAll(Collection c){
             return list.containsAll(c);
         }
-        public int      opEquals(Object o){
-            return list.opEquals(o);
+        public equals_t      opEquals(Object o){
+            return cast(equals_t)list.opEquals(o);
         }
         public Object   get(int index){
             return list.get(index);
@@ -261,7 +261,7 @@
         public bool     contains(Object o){ synchronized(this){ return this.list.contains(o); } }
         public bool     contains(String o){ synchronized(this){ return this.list.contains(o); } }
         public bool     containsAll(Collection c){ synchronized(this){ return this.list.containsAll(c); } }
-        public int      opEquals(Object o){ synchronized(this){ return this.list.opEquals(o); } }
+        public equals_t      opEquals(Object o){ synchronized(this){ return cast(equals_t)this.list.opEquals(o); } }
         public Object   get(int index){ synchronized(this){ return this.list.get(index); } }
         public hash_t   toHash(){ synchronized(this){ return this.list.toHash(); } }
         public int      indexOf(Object o){ synchronized(this){ return this.list.indexOf(o); } }
@@ -302,7 +302,7 @@
         public bool containsKey(String key){ synchronized(this){ return this.map.containsKey(key); } }
         public bool containsValue(Object value){ synchronized(this){ return this.map.containsValue(value); } }
         public Set  entrySet(){ synchronized(this){ return this.map.entrySet(); } }
-        public int opEquals(Object o){ synchronized(this){ return this.map.opEquals(o); } }
+        public equals_t opEquals(Object o){ synchronized(this){ return this.map.opEquals(o); } }
         public Object get(Object key){ synchronized(this){ return this.map.get(key); } }
         public Object get(String key){ synchronized(this){ return this.map.get(key); } }
         public hash_t toHash(){ synchronized(this){ return this.map.toHash(); } }