[jdom-interest] FilterList and Filter

Jason Hunter jhunter at acm.org
Mon Jan 7 09:37:02 PST 2002


Jools Enticknap wrote:
> 
> > So why make them public classes and interfaces and not package private?
> 
> FilterList has to be public, in the same way as java.util.ArrayList needs
> to be public :-)

Right.

> Filter is public, but it could just as well be package protected as the
> methods on FilterList which allow access to the Filter are infact package
> protected.

For Filter, it's likely there'll be some ability to use the interface to
create custom Filters, such as with a document.getIterator(Filter)
method to walk the document according to some filter.

The other Filter-related classes are package protected.

-jh-



More information about the jdom-interest mailing list