(T value)
| 557 | } |
| 558 | |
| 559 | public PersistentSet<T> replaceWith(T value) { |
| 560 | if (fresh) throw new IllegalStateException(); |
| 561 | if (root.comparator.compare(node.value, value) != 0) |
| 562 | throw new IllegalArgumentException(); |
| 563 | |
| 564 | node.value = value; |
| 565 | return root; |
| 566 | } |
| 567 | } |
| 568 | |
| 569 | public class Iterator <T> implements java.util.Iterator <T> { |
no test coverage detected