comparison base/src/java/util/AbstractSet.d @ 99:5d5bd660917f

build some databind snippets
author Frank Benoit <benoit@tionex.de>
date Wed, 22 Apr 2009 18:59:26 +0200
parents 1d37a7813832
children
comparison
equal deleted inserted replaced
98:48d4ee626868 99:5d5bd660917f
36 public Object[] toArray(){ return super.toArray(); } 36 public Object[] toArray(){ return super.toArray(); }
37 public Object[] toArray(Object[] a){ return super.toArray(a); } 37 public Object[] toArray(Object[] a){ return super.toArray(a); }
38 public String toString(){ return super.toString(); } 38 public String toString(){ return super.toString(); }
39 39
40 // only for D 40 // only for D
41 //public int opApply (int delegate(ref Object value) dg){ return super.opApply(dg); } 41 public int opApply (int delegate(ref Object value) dg){
42 auto it = iterator();
43 while( it.hasNext() ){
44 auto v = it.next();
45 int res = dg( v );
46 if( res ) return res;
47 }
48 return 0;
49 }
42 } 50 }
43 51