com.bstek.dorado.util.proxy
public abstract class CollectionProxySupport<E> extends java.lang.Object implements java.util.Collection<E>, java.io.Serializable
Collection
代理的抽象支持类。Constructor and Description |
---|
CollectionProxySupport(java.util.Collection<E> target) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E o) |
boolean |
addAll(java.util.Collection<? extends E> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
equals(java.lang.Object o) |
java.util.Collection<E> |
getTarget()
返回被代理的
Collection 对象。 |
int |
hashCode() |
boolean |
isEmpty() |
java.util.Iterator<E> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
protected void |
setTarget(java.util.Collection<E> target)
设置被代理的
Collection 对象。 |
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
java.lang.Object |
writeReplace() |
public CollectionProxySupport(java.util.Collection<E> target)
target
- 被代理的Collection
对象。protected void setTarget(java.util.Collection<E> target)
Collection
对象。public java.util.Collection<E> getTarget()
Collection
对象。public boolean addAll(java.util.Collection<? extends E> c)
addAll
in interface java.util.Collection<E>
public void clear()
clear
in interface java.util.Collection<E>
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<E>
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<E>
public boolean equals(java.lang.Object o)
equals
in interface java.util.Collection<E>
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Collection<E>
hashCode
in class java.lang.Object
public boolean isEmpty()
isEmpty
in interface java.util.Collection<E>
public java.util.Iterator<E> iterator()
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<E>
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<E>
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<E>
public int size()
size
in interface java.util.Collection<E>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<E>
public <T> T[] toArray(T[] a)
toArray
in interface java.util.Collection<E>
public java.lang.Object writeReplace() throws java.io.ObjectStreamException
java.io.ObjectStreamException
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.