Package org.simpleframework.xml.util
Class Resolver.Stack.Sequence
- java.lang.Object
-
- org.simpleframework.xml.util.Resolver.Stack.Sequence
-
- All Implemented Interfaces:
java.util.Iterator<M>
- Enclosing class:
- Resolver.Stack
private class Resolver.Stack.Sequence extends java.lang.Object implements java.util.Iterator<M>
The is used to order theMatch
objects in the insertion order. Iterating in insertion order allows the resolver object to be serialized and deserialized to and from an XML document without disruption resolution order.
-
-
Field Summary
Fields Modifier and Type Field Description private int
cursor
The cursor used to acquire objects from the stack.
-
Constructor Summary
Constructors Constructor Description Sequence()
Constructor for theSequence
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
This is used to determine if the cursor has reached the start of the list.M
next()
This returns theMatch
object at the cursor position.void
remove()
Removes the match from the cursor position.
-
-
-
Method Detail
-
next
public M next()
This returns theMatch
object at the cursor position. If the cursor has reached the start of the list then this returns null instead of the first match.
-
hasNext
public boolean hasNext()
This is used to determine if the cursor has reached the start of the list. When the cursor reaches the start of the list then this method returns false.
-
-