(Object o)
| 543 | return -1; |
| 544 | } |
| 545 | @Override |
| 546 | public boolean remove(Object o) { |
| 547 | int idx = indexOf((Structure) o); |
| 548 | if (idx != -1) { |
| 549 | if (--count >= 0) { |
| 550 | elements[idx] = elements[count]; |
| 551 | elements[count] = null; |
| 552 | } |
| 553 | return true; |
| 554 | } |
| 555 | return false; |
| 556 | } |
| 557 | /** Simple implementation so that toString() doesn't break. |
| 558 | Provides an iterator over a snapshot of this Set. |
| 559 | */ |