Package COM.activesw.api.client
Class NativeFieldIterator
- java.lang.Object
-
- COM.activesw.api.client.NativeFieldIterator
-
public class NativeFieldIterator extends java.lang.Object
Provides access to a NativeStruct via a convenient iterator interface
-
-
Constructor Summary
Constructors Constructor Description NativeFieldIterator(NativeStruct struct)
Construct an iterator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(NativeField field)
Add a field to the structNativeStruct
getStruct()
boolean
hasNext()
Returns true if this iterator has more fields when traversing in the forward directionboolean
hasPrevious()
Returns true if this iterator has more fields when traversing in the backward directionNativeField
next()
Returns the next field.int
nextIndex()
NativeField
previous()
Returns the previous field.int
previousIndex()
void
remove()
-
-
-
Constructor Detail
-
NativeFieldIterator
public NativeFieldIterator(NativeStruct struct)
Construct an iterator- Parameters:
struct
- - the underlying struct
-
-
Method Detail
-
add
public void add(NativeField field)
Add a field to the struct- Parameters:
field
- - the field to add
-
hasNext
public boolean hasNext()
Returns true if this iterator has more fields when traversing in the forward direction- Returns:
- boolean
-
hasPrevious
public boolean hasPrevious()
Returns true if this iterator has more fields when traversing in the backward direction- Returns:
- boolean
-
next
public NativeField next()
Returns the next field. Returns null if there is no next field.- Returns:
- NativeField - the next field
-
previous
public NativeField previous()
Returns the previous field. Returns null if there is no previous field.- Returns:
- NativeField - the previous field
-
previousIndex
public int previousIndex()
-
nextIndex
public int nextIndex()
-
remove
public void remove()
-
getStruct
public NativeStruct getStruct()
-
-