KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jac > lib > java > util > HashMap


1 /**
2  * This class delegates to java.util.HashMap
3  * This file was automatically generated by JAC (-g option)
4  * DO NOT MODIFY
5  * Author: Renaud Pawlak (pawlak@cnam.fr)
6  */

7
8 package org.objectweb.jac.lib.java.util;
9
10 import java.util.Collection JavaDoc;
11 import java.util.Map JavaDoc;
12 import java.util.Set JavaDoc;
13 import org.objectweb.jac.util.Strings;
14
15 public class HashMap extends java.util.HashMap JavaDoc {
16
17     //private java.util.HashMap delegate = new java.util.HashMap();
18

19     public Object JavaDoc clone() {
20         System.out.println("HashMap.clone");
21         Object JavaDoc result = null;
22         try {
23             result = super.clone();
24         } catch(Exception JavaDoc e) {
25         };
26         //((HashMap)result).delegate = (java.util.HashMap)delegate.clone();
27
return result;
28     }
29
30     public Object JavaDoc put(Object JavaDoc p0, Object JavaDoc p1) {
31         return super.put(p0, p1);
32     }
33
34     public Object JavaDoc get(Object JavaDoc p0) {
35         return super.get(p0);
36     }
37
38     public int size() {
39         return super.size();
40     }
41
42     public Object JavaDoc remove(Object JavaDoc p0) {
43         return super.remove(p0);
44     }
45
46     public Collection JavaDoc values() {
47         return super.values();
48     }
49
50     public void clear() {
51         super.clear();
52     }
53
54     public Set JavaDoc keySet() {
55         return super.keySet();
56     }
57
58     public Set JavaDoc entrySet() {
59         return super.entrySet();
60     }
61
62     public boolean isEmpty() {
63         return super.isEmpty();
64     }
65
66     public boolean containsValue(Object JavaDoc p0) {
67         return super.containsValue(p0);
68     }
69
70     public boolean containsKey(Object JavaDoc p0) {
71         return super.containsKey(p0);
72     }
73
74     public void putAll(Map JavaDoc p0) {
75         super.putAll(p0);
76     }
77     
78     public boolean equals(Object JavaDoc o) {
79         return this == o;
80     }
81
82     public int hashCode() {
83         return System.identityHashCode(this);
84     }
85
86     public String JavaDoc toString() {
87         return getClass().getName()+"@"+System.identityHashCode(this);
88     }
89 }
90
Popular Tags