Java java.util ListIterator fields, constructors, methods, implement or subclass

Example usage for Java java.util ListIterator fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util ListIterator.

The text is from its open source code.

Implementation

java.util.ListIterator has the following implementations.
Click this link to see all its implementation.

Constructor

Method

voidadd(E e)
Inserts the specified element into the list (optional operation).
booleanhasNext()
Returns true if this list iterator has more elements when traversing the list in the forward direction.
booleanhasPrevious()
Returns true if this list iterator has more elements when traversing the list in the reverse direction.
Enext()
Returns the next element in the list and advances the cursor position.
intnextIndex()
Returns the index of the element that would be returned by a subsequent call to #next .
Eprevious()
Returns the previous element in the list and moves the cursor position backwards.
intpreviousIndex()
Returns the index of the element that would be returned by a subsequent call to #previous .
voidremove()
Removes from the list the last element that was returned by #next or #previous (optional operation).
voidset(E e)
Replaces the last element returned by #next or #previous with the specified element (optional operation).