[jdom-interest] For consideration

Rosen, Alex arosen at silverstream.com
Tue May 1 08:23:22 PDT 2001

> Collection isn't a
> terribly interesting interface.  Other subinterfaces are even less
> interesting, if possible, some that are little more than markers that
> define alternate behavior for base class APIs.

Huh? Collection specifies a lot of common, useful things you'd like to do to a
collection. List and SortedSet also provide useful methods that apply to all
lists or sorted sets. The Set interface is the only one of the 4 that doesn't
provide any new methods, but its JavaDoc does specify additional constraints on
any implementing classes.

The use of an interface as just a marker is not unknown (e.g. Serializable),
but it's pretty rare. There certainly doesn't seem to be a lot of agreement on
how to implement this Node change to JDOM, even among the people that want


More information about the jdom-interest mailing list