Clears the iterator using its remove method.
(Iterator<?> iterator)
| 1019 | |
| 1020 | |
| 1021 | static void clear(Iterator<?> iterator) { |
| 1022 | checkNotNull(iterator); |
| 1023 | while (iterator.hasNext()) { |
| 1024 | iterator.next(); |
| 1025 | iterator.remove(); |
| 1026 | } |
| 1027 | } |
| 1028 | |
| 1029 | /** |
| 1030 | * Returns an iterator containing the elements of {@code array} in order. The |
no test coverage detected