diff options
| author | Ben Culkin <scorpress@gmail.com> | 2020-11-21 11:02:48 -0500 |
|---|---|---|
| committer | Ben Culkin <scorpress@gmail.com> | 2020-11-21 11:02:48 -0500 |
| commit | 9273abd4c2df584b26841ac9cde958bda0c07769 (patch) | |
| tree | 2592b02e6d970ae4ec6491a8fd0a5a684abb6327 /src/main/java/bjc/data/Pair.java | |
| parent | eee86f6e7e148fae897a333ab0ca9b44584c264c (diff) | |
Add iterators which don't throw ConcurrentModificationException
This adds two iterators (one iterator, one ListIterator) which are
guaranteed not to throw a ConcurrentModificationException. The intended
use case is allowing you to iterate over a list and modify it at the
same time.
Note that this will still give odd behavior in the presence of actual
concurrency, but that is a deliberate tradeoff.
Diffstat (limited to 'src/main/java/bjc/data/Pair.java')
0 files changed, 0 insertions, 0 deletions
