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 theMatchobjects 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 intcursorThe cursor used to acquire objects from the stack.
-
Constructor Summary
Constructors Constructor Description Sequence()Constructor for theSequenceobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()This is used to determine if the cursor has reached the start of the list.Mnext()This returns theMatchobject at the cursor position.voidremove()Removes the match from the cursor position.
-
-
-
Method Detail
-
next
public M next()
This returns theMatchobject 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.
-
-