Skip to main content
8 events
when toggle format what by license comment
Oct 5, 2015 at 10:44 comment added Stack Exchange Broke The Law @Frank I was saying how it changes the view of the outer instance. That's exactly what an adapter does - it changes the way you view some object. In this case, that object is the outer instance.
Oct 5, 2015 at 10:32 comment added Frank @immibis thanks, I'm well aware of what the iterator / adapter does, but this question was about how it is implemented.
Oct 5, 2015 at 8:05 comment added Stack Exchange Broke The Law @Frank It's a pretty typical adapter class - it lets you view the set as a stream of its elements (an Iterator).
May 19, 2014 at 5:15 vote accept Frank
May 12, 2014 at 9:55 comment added Frank I'm not quite sure how/whether this adapter changes the view of the outer class MySet instances? I could envision something like a path-dependent type being a difference, i.e. myOneSet.iterator.getClass() != myOtherSet.iterator.getClass(), but then again, in Java this is actually not possible, as the class would be the same for each.
May 12, 2014 at 8:54 history edited gnat CC BY-SA 3.0
typo corrected
May 12, 2014 at 8:52 review First posts
May 12, 2014 at 8:54
May 12, 2014 at 8:34 history answered erakitin CC BY-SA 3.0