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