gabrielladin / jc-tree

Automatically exported from code.google.com/p/jc-tree
0 stars 0 forks source link

retainall is undefined on Tree #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
A tree is hierarchial data structure. Thus for a node to exist, its parents 
should exist. Similarly, for its parent to exist, its parent should exist, so 
on and so forth. Thus, implementation of retainAll cannot be provided which is 
consistent with dictates of Collection interface

Since retainAll is a optional method as mentioned in Collection interface, all 
tree implementations should throw UnsupportedOperationException

Original issue reported on code.google.com by gsaxen...@gmail.com on 9 Nov 2011 at 11:55

GoogleCodeExporter commented 9 years ago

Original comment by gsaxen...@gmail.com on 22 Nov 2011 at 2:53

GoogleCodeExporter commented 9 years ago
Issue has been fixed in jc-tree_1.1_RC1.jar but still monitoring for any 
side-effects

Original comment by gsaxen...@gmail.com on 22 Nov 2011 at 2:54

GoogleCodeExporter commented 9 years ago
retainAll throws UnsupportedOperationException for all trees now

Original comment by gsaxen...@gmail.com on 12 Dec 2011 at 2:16