-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnmodifiableIterable #114
Comments
@yegor256 so i i had an UnmodifieableIterable i would assume that every call to iterator() would lead to the same sequence of elements. BUt how would you guarantee that behaviour? If i take a Collection (which implements iterable) and wrap this collection in the UnmodifiableInterable, changes to the underlying Collection would still result in a change in the Iterable, after the next .iterator() call. I can imagine |
Let's introduce
UnmodifiableIterable
which wraps another iterable and throws ifremove()
is called.The text was updated successfully, but these errors were encountered: