mirror of
https://github.com/apache/commons-collections.git
synced 2025-02-09 19:45:42 +00:00
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) {
|
public LoopingListIterator(final List<E> list) {
|
||||||
this.list = Objects.requireNonNull(list, "collection");
|
this.list = Objects.requireNonNull(list, "collection");
|
||||||
_reset();
|
init();
|
||||||
}
|
|
||||||
|
|
||||||
private void _reset() {
|
|
||||||
iterator = list.listIterator();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -110,6 +106,10 @@ public class LoopingListIterator<E> implements ResettableListIterator<E> {
|
|||||||
return !list.isEmpty();
|
return !list.isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void init() {
|
||||||
|
iterator = list.listIterator();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the next object in the list.
|
* Returns the next object in the list.
|
||||||
* <p>
|
* <p>
|
||||||
@ -230,7 +230,7 @@ public class LoopingListIterator<E> implements ResettableListIterator<E> {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void reset() {
|
public void reset() {
|
||||||
_reset();
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user