Package org.kordamp.json
Class JSONArray.JSONArrayListIterator
- java.lang.Object
-
- org.kordamp.json.JSONArray.JSONArrayListIterator
-
- All Implemented Interfaces:
java.util.Iterator
,java.util.ListIterator
- Enclosing class:
- JSONArray
private class JSONArray.JSONArrayListIterator extends java.lang.Object implements java.util.ListIterator
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
currentIndex
(package private) int
lastIndex
-
Constructor Summary
Constructors Constructor Description JSONArrayListIterator()
JSONArrayListIterator(int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.lang.Object obj)
boolean
hasNext()
boolean
hasPrevious()
java.lang.Object
next()
int
nextIndex()
java.lang.Object
previous()
int
previousIndex()
void
remove()
void
set(java.lang.Object obj)
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator
- Specified by:
hasNext
in interfacejava.util.ListIterator
-
next
public java.lang.Object next()
- Specified by:
next
in interfacejava.util.Iterator
- Specified by:
next
in interfacejava.util.ListIterator
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfacejava.util.ListIterator
-
previous
public java.lang.Object previous()
- Specified by:
previous
in interfacejava.util.ListIterator
-
nextIndex
public int nextIndex()
- Specified by:
nextIndex
in interfacejava.util.ListIterator
-
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interfacejava.util.ListIterator
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator
- Specified by:
remove
in interfacejava.util.ListIterator
-
set
public void set(java.lang.Object obj)
- Specified by:
set
in interfacejava.util.ListIterator
-
add
public void add(java.lang.Object obj)
- Specified by:
add
in interfacejava.util.ListIterator
-
-