Simple implementation so that toString() doesn't break. Provides an iterator over a snapshot of this Set.
()
| 558 | Provides an iterator over a snapshot of this Set. |
| 559 | */ |
| 560 | @Override |
| 561 | public Iterator<Structure> iterator() { |
| 562 | Structure[] e = new Structure[count]; |
| 563 | if (count > 0) { |
| 564 | System.arraycopy(elements, 0, e, 0, count); |
| 565 | } |
| 566 | return Arrays.asList(e).iterator(); |
| 567 | } |
| 568 | } |
| 569 | |
| 570 | static Set<Structure> busy() { |
no outgoing calls