📄 observablecollection.java
字号:
package com.ibm.j2x.util.collection;
import com.ibm.j2x.event.CollectionListener;
/**
* The ObservableCollection interface acts as a super interface for all the collection
* objects in the Observable framework. It requires its implementors to
* store its own listeners.
* <p>Although the Map and Bag are technically according to Sun not a Collection, they
* are used through the Collections framework as if they are. This inconsistency is
* carried through to this package, as a Map and Bag are treated as a normal collection
* for ease of use and consistency throughout the framework.
* @author MAbernethy
*
*/
public interface ObservableCollection
{
/**
* Adds a CollectionListener to the collection
* @param l the listener
*/
public void addCollectionListener(CollectionListener l);
/**
* Removes a CollectionListener to the collection
* @param l the listener
*/
public void removeCollectionListener(CollectionListener l);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -