Rename private method
This commit is contained in:
parent
29b780d9e4
commit
70daadef22
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue