com.bstek.dorado.util.proxy
public abstract class ChildrenSetSupport<E> extends SetProxySupport<E>
Constructor and Description |
---|
ChildrenSetSupport() |
ChildrenSetSupport(java.util.Set<E> target) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E o) |
boolean |
addAll(java.util.Collection<? extends E> c) |
protected abstract void |
childAdded(E child)
当有新的子对象被添加到Set时被激活的方法。
|
protected abstract void |
childRemoved(E child)
当有新的子对象被添加到Set时被激活的方法。
|
void |
clear() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
contains, containsAll, equals, getTarget, hashCode, isEmpty, iterator, retainAll, setTarget, size, toArray, toArray, writeReplace
public ChildrenSetSupport()
public ChildrenSetSupport(java.util.Set<E> target)
target
- 被代理的Set。protected abstract void childAdded(E child)
child
- 子对象protected abstract void childRemoved(E child)
child
- 子对象public boolean add(E o)
add
in interface java.util.Collection<E>
add
in interface java.util.Set<E>
add
in class CollectionProxySupport<E>
public boolean addAll(java.util.Collection<? extends E> c)
addAll
in interface java.util.Collection<E>
addAll
in interface java.util.Set<E>
addAll
in class CollectionProxySupport<E>
public void clear()
clear
in interface java.util.Collection<E>
clear
in interface java.util.Set<E>
clear
in class CollectionProxySupport<E>
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<E>
remove
in interface java.util.Set<E>
remove
in class CollectionProxySupport<E>
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<E>
removeAll
in interface java.util.Set<E>
removeAll
in class CollectionProxySupport<E>
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.