Mercurial > projects > dwt2
comparison java/src/java/util/Dictionary.d @ 10:eb8ff453285d
Added java.util collection classes.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 13 Mar 2009 16:57:07 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
9:950d84783eac | 10:eb8ff453285d |
---|---|
1 module java.util.Dictionary; | |
2 | |
3 import java.lang.all; | |
4 import java.util.Enumeration; | |
5 | |
6 class Dictionary { | |
7 public this(){ | |
8 } | |
9 abstract Enumeration elements(); | |
10 abstract Object get(Object key); | |
11 Object get(String key){ | |
12 return get(stringcast(key)); | |
13 } | |
14 abstract bool isEmpty(); | |
15 abstract Enumeration keys(); | |
16 abstract Object put(Object key, Object value); | |
17 public Object put(String key, Object value){ | |
18 return put(stringcast(key), value); | |
19 } | |
20 public Object put(Object key, String value){ | |
21 return put(key, stringcast(value)); | |
22 } | |
23 public Object put(String key, String value){ | |
24 return put(stringcast(key), stringcast(value)); | |
25 } | |
26 abstract Object remove(Object key); | |
27 public Object remove(String key){ | |
28 return remove(stringcast(key)); | |
29 } | |
30 abstract int size(); | |
31 } | |
32 |