Rename private method

This commit is contained in:
Gary Gregory 2024-07-14 12:04:22 -04:00
parent 29b780d9e4
commit 70daadef22
1 changed files with 6 additions and 6 deletions

View File

@ -57,11 +57,7 @@ public class LoopingListIterator<E> implements ResettableListIterator<E> {
*/
public LoopingListIterator(final List<E> list) {
this.list = Objects.requireNonNull(list, "collection");
_reset();
}
private void _reset() {
iterator = list.listIterator();
init();
}
/**
@ -110,6 +106,10 @@ public class LoopingListIterator<E> implements ResettableListIterator<E> {
return !list.isEmpty();
}
private void init() {
iterator = list.listIterator();
}
/**
* Returns the next object in the list.
* <p>
@ -230,7 +230,7 @@ public class LoopingListIterator<E> implements ResettableListIterator<E> {
*/
@Override
public void reset() {
_reset();
init();
}
/**