tag:blogger.com,1999:blog-5638372.post115531566664447222..comments2023-10-10T05:22:56.347-05:00Comments on binkley's BLOG: Read-only enhanced for loops in JavaBrian Oxleyhttp://www.blogger.com/profile/06617364377560752378noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-5638372.post-1158060612589008562006-09-12T06:30:00.000-05:002006-09-12T06:30:00.000-05:00Re: Collections.unmodifiable(Collection).You could...Re: Collections.unmodifiable(Collection).<BR/><BR/>You could, of course, use that. I presented the Iterator more as example code when all you want is an Iteratable and not a full Collection interface. Less is more, as they say.Brian Oxleyhttps://www.blogger.com/profile/06617364377560752378noreply@blogger.comtag:blogger.com,1999:blog-5638372.post-1158034515097772572006-09-11T23:15:00.000-05:002006-09-11T23:15:00.000-05:00Why won't the unmodifiable methods in the Collecti...Why won't the unmodifiable methods in the Collections class do what you want?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5638372.post-1155774536286370472006-08-16T19:28:00.000-05:002006-08-16T19:28:00.000-05:00You know... you are right. I was thinking about I...You know... you are right. I was thinking about Iterator and added Iterable out of habit.Brian Oxleyhttps://www.blogger.com/profile/06617364377560752378noreply@blogger.comtag:blogger.com,1999:blog-5638372.post-1155758343811677912006-08-16T14:59:00.000-05:002006-08-16T14:59:00.000-05:00What does this accomplish? Enhanced for loops don...What does this accomplish? Enhanced for loops don't expose the iterator, so they can't modify the collection anyway.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5638372.post-1155405748562048942006-08-12T13:02:00.000-05:002006-08-12T13:02:00.000-05:00This is implemented in JGA.This is implemented in JGA.gumihttps://www.blogger.com/profile/05851786027170205954noreply@blogger.com