KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * This class delegates to java.util.HashSet
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.io.Serializable JavaDoc;
11 import java.lang.Cloneable JavaDoc;
12 import java.util.Collection JavaDoc;
13 import java.util.Set JavaDoc;
14 import org.objectweb.jac.util.Strings;
15
16 public class HashSet extends java.util.HashSet JavaDoc {
17
18     //private java.util.HashSet delegate = new java.util.HashSet();
19

20     public Object JavaDoc clone() {
21         System.out.println("HashSet.clone");
22         Object JavaDoc result = null;
23         try {
24             result = super.clone();
25         } catch(Exception JavaDoc e) {
26         };
27         //((HashSet)result).delegate=(java.util.HashSet)delegate.clone();
28
return result;
29     }
30
31     public boolean add(Object JavaDoc p0) {
32         return super.add(p0);
33     }
34
35     public boolean contains(Object JavaDoc p0) {
36         return super.contains(p0);
37     }
38
39     public int size() {
40         return super.size();
41     }
42
43     public java.util.Iterator JavaDoc iterator() {
44         return super.iterator();
45     }
46
47     public boolean remove(Object JavaDoc p0) {
48         return super.remove(p0);
49     }
50
51     public void clear() {
52         super.clear();
53     }
54
55     public boolean isEmpty() {
56         return super.isEmpty();
57     }
58
59     public boolean removeAll(Collection JavaDoc p0) {
60         return super.removeAll(p0);
61     }
62
63     public boolean addAll(Collection JavaDoc p0) {
64         return super.addAll(p0);
65     }
66
67     public Object JavaDoc[] toArray() {
68         return super.toArray();
69     }
70
71     public Object JavaDoc[] toArray(Object JavaDoc[] p0) {
72         return super.toArray(p0);
73     }
74
75     public boolean containsAll(Collection JavaDoc p0) {
76         return super.containsAll(p0);
77     }
78
79     public boolean retainAll(Collection JavaDoc p0) {
80         return super.retainAll(p0);
81     }
82
83     public boolean equals(Object JavaDoc o) {
84         return this == o;
85     }
86
87     public int hashCode() {
88         return System.identityHashCode(this);
89     }
90
91     public String JavaDoc toString() {
92         return getClass().getName()+"@"+System.identityHashCode(this);
93     }
94 }
95
Popular Tags