From: Doug C. <de...@fl...> - 2002-02-22 23:27:56
|
Earler I said: > An alternative compromise between the two approaches is to add an > instance variable to SortedSet, backingSet, which would be null for > the real set, and for subsets it would reference the SortedSet > superset. Then write() and read() could check backingSet: if it's null > they would do the usual thing, if not they would delegate. This would > be compatable with PeristentCollection.IteratorProxy I think. I am liking this compromise more and more. I implemented SortedMap this way so you'd have a concrete example to evaluate; see cvs. It depends on Map.map being non-private, and PeristentCollection read() and write() being non-final. e |