1 17 package org.apache.commons.collections.primitives.decorators; 18 19 import org.apache.commons.collections.primitives.CharCollection; 20 import org.apache.commons.collections.primitives.CharIterator; 21 22 29 abstract class BaseProxyCharCollection implements CharCollection { 30 protected abstract CharCollection getProxiedCollection(); 31 32 protected BaseProxyCharCollection() { 33 } 34 35 public boolean add(char element) { 36 return getProxiedCollection().add(element); 37 } 38 39 public boolean addAll(CharCollection c) { 40 return getProxiedCollection().addAll(c); 41 } 42 43 public void clear() { 44 getProxiedCollection().clear(); 45 } 46 47 public boolean contains(char element) { 48 return getProxiedCollection().contains(element); 49 } 50 51 public boolean containsAll(CharCollection c) { 52 return getProxiedCollection().containsAll(c); 53 } 54 55 public boolean isEmpty() { 56 return getProxiedCollection().isEmpty(); 57 } 58 59 public CharIterator iterator() { 60 return getProxiedCollection().iterator(); 61 } 62 63 public boolean removeAll(CharCollection c) { 64 return getProxiedCollection().removeAll(c); 65 } 66 67 public boolean removeElement(char element) { 68 return getProxiedCollection().removeElement(element); 69 } 70 71 public boolean retainAll(CharCollection c) { 72 return getProxiedCollection().retainAll(c); 73 } 74 75 public int size() { 76 return getProxiedCollection().size(); 77 } 78 79 public char[] toArray() { 80 return getProxiedCollection().toArray(); 81 } 82 83 public char[] toArray(char[] a) { 84 return getProxiedCollection().toArray(a); 85 } 86 87 89 public boolean equals(Object obj) { 90 return getProxiedCollection().equals(obj); 91 } 92 93 public int hashCode() { 94 return getProxiedCollection().hashCode(); 95 } 96 97 public String toString() { 98 return getProxiedCollection().toString(); 99 } 100 101 } 102 | Popular Tags |