Class NativeFieldIterator


  • public class NativeFieldIterator
    extends java.lang.Object
    Provides access to a NativeStruct via a convenient iterator interface
    • 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()