1 23 package com.sun.enterprise.server.ss.util; 24 25 36 public class ASSet implements java.util.Set { 37 38 private java.util.Set set = null; 39 private ASWrapperCreator wCreator = null; 40 41 public ASSet(java.util.Set set, ASWrapperCreator wCreator) { 42 this.set = set; 43 this.wCreator = wCreator; 44 } 45 46 public int size() { 47 return set.size(); 48 } 49 50 public boolean isEmpty() { 51 return set.isEmpty(); 52 } 53 54 public boolean contains(java.lang.Object obj) { 55 return set.contains(obj); 56 } 57 58 public java.util.Iterator iterator() { 59 return new ASIterator(this); 60 } 61 62 public Object [] toArray() { 63 return set.toArray(); 64 } 65 66 public Object [] toArray(java.lang.Object [] a) { 67 return set.toArray(a); 68 } 69 70 public boolean add(java.lang.Object obj) { 71 return set.add(obj); 72 } 73 74 public boolean remove(java.lang.Object obj) { 75 return set.remove(obj); 76 } 77 78 public boolean containsAll(java.util.Collection c) { 79 return set.containsAll(c); 80 } 81 82 public boolean addAll(java.util.Collection c) { 83 return set.addAll(c); 84 } 85 86 public boolean retainAll(java.util.Collection c) { 87 return set.retainAll(c); 88 } 89 90 public boolean removeAll(java.util.Collection c) { 91 return set.removeAll(c); 92 } 93 94 public void clear() { 95 set.clear(); 96 } 97 98 public boolean equals(java.lang.Object obj) { 99 return set.equals(obj); 100 } 101 102 public int hashCode() { 103 return set.hashCode(); 104 } 105 106 java.util.Set actualSet() { 107 return set; 108 } 109 110 Object wrapIfNecessary(Object next) { 111 return wCreator.wrapIfNecessary(next); 112 } 113 } 114 | Popular Tags |