6 public class DateToMapAdapter extends AbstractMap {
9 public DateToMapAdapter(Date aDate) {
13 public Object get(Object aKey) {
14 if (aKey instanceof String) {
16 return new SimpleDateFormat((String) aKey).format(date);
19 throw new RuntimeException( "Can't format date with format " + (String) aKey + ": " + t.getMessage());
25 public Set entrySet() {