Mercurial > projects > dwt2
comparison java/src/java/util/AbstractList.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 |
comparison
equal
deleted
inserted
replaced
20:dccb717aa902 | 21:9b96950f2c3c |
---|---|
19 public abstract bool contains(Object o); | 19 public abstract bool contains(Object o); |
20 public bool contains(String str){ | 20 public bool contains(String str){ |
21 return contains(stringcast(str)); | 21 return contains(stringcast(str)); |
22 } | 22 } |
23 public abstract bool containsAll(Collection c); | 23 public abstract bool containsAll(Collection c); |
24 public abstract int opEquals(Object o); | 24 public abstract equals_t opEquals(Object o); |
25 public abstract Object get(int index); | 25 public abstract Object get(int index); |
26 | 26 |
27 public hash_t toHash(){ | 27 public hash_t toHash(){ |
28 // http://java.sun.com/j2se/1.4.2/docs/api/java/util/List.html#hashCode() | 28 // http://java.sun.com/j2se/1.4.2/docs/api/java/util/List.html#hashCode() |
29 hash_t hashCode = 1; | 29 hash_t hashCode = 1; |