< prev index next >
src/java.desktop/share/classes/java/beans/beancontext/BeanContextMembershipEvent.java
Print this page
*** 33,54 ****
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
/**
! * A <code>BeanContextMembershipEvent</code> encapsulates
* the list of children added to, or removed from,
! * the membership of a particular <code>BeanContext</code>.
* An instance of this event is fired whenever a successful
* add(), remove(), retainAll(), removeAll(), or clear() is
! * invoked on a given <code>BeanContext</code> instance.
* Objects interested in receiving events of this type must
! * implement the <code>BeanContextMembershipListener</code>
* interface, and must register their intent via the
! * <code>BeanContext</code>'s
! * <code>addBeanContextMembershipListener(BeanContextMembershipListener bcml)
! * </code> method.
*
* @author Laurence P. G. Cable
* @since 1.2
* @see java.beans.beancontext.BeanContext
* @see java.beans.beancontext.BeanContextEvent
--- 33,54 ----
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
/**
! * A {@code BeanContextMembershipEvent} encapsulates
* the list of children added to, or removed from,
! * the membership of a particular {@code BeanContext}.
* An instance of this event is fired whenever a successful
* add(), remove(), retainAll(), removeAll(), or clear() is
! * invoked on a given {@code BeanContext} instance.
* Objects interested in receiving events of this type must
! * implement the {@code BeanContextMembershipListener}
* interface, and must register their intent via the
! * {@code BeanContext}'s
! * {@code addBeanContextMembershipListener(BeanContextMembershipListener bcml)}
! * method.
*
* @author Laurence P. G. Cable
* @since 1.2
* @see java.beans.beancontext.BeanContext
* @see java.beans.beancontext.BeanContextEvent
*** 60,70 ****
/**
* Contruct a BeanContextMembershipEvent
*
* @param bc The BeanContext source
* @param changes The Children affected
! * @throws NullPointerException if <CODE>changes</CODE> is <CODE>null</CODE>
*/
@SuppressWarnings("rawtypes")
public BeanContextMembershipEvent(BeanContext bc, Collection changes) {
super(bc);
--- 60,70 ----
/**
* Contruct a BeanContextMembershipEvent
*
* @param bc The BeanContext source
* @param changes The Children affected
! * @throws NullPointerException if {@code changes} is {@code null}
*/
@SuppressWarnings("rawtypes")
public BeanContextMembershipEvent(BeanContext bc, Collection changes) {
super(bc);
*** 99,109 ****
*/
public int size() { return children.size(); }
/**
* Is the child specified affected by the event?
! * @return <code>true</code> if affected, <code>false</code>
* if not
* @param child the object to check for being affected
*/
public boolean contains(Object child) {
return children.contains(child);
--- 99,109 ----
*/
public int size() { return children.size(); }
/**
* Is the child specified affected by the event?
! * @return {@code true} if affected, {@code false}
* if not
* @param child the object to check for being affected
*/
public boolean contains(Object child) {
return children.contains(child);
< prev index next >