Class ListFromRDFList.RDFListIterator

java.lang.Object
org.aksw.jena_sparql_api.rdf.collections.ListFromRDFList.RDFListIterator
All Implemented Interfaces:
Iterator<org.apache.jena.rdf.model.RDFNode>, ListIterator<org.apache.jena.rdf.model.RDFNode>
Enclosing class:
ListFromRDFList

public class ListFromRDFList.RDFListIterator extends Object implements ListIterator<org.apache.jena.rdf.model.RDFNode>

Iterator that can step along chains of list pointers to the end of the list.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected int
     
    protected org.apache.jena.rdf.model.RDFList
    The current list node
    protected boolean
     
    protected org.apache.jena.rdf.model.RDFList
    The most recently seen node
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    RDFListIterator(org.apache.jena.rdf.model.RDFList head, int currentIndex)
    Construct an iterator for walking the list starting at head
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(org.apache.jena.rdf.model.RDFNode e)
     
    protected org.apache.jena.rdf.model.RDFList
    getNextCell(org.apache.jena.rdf.model.RDFList cell)
     
    protected org.apache.jena.rdf.model.RDFList
     
    boolean
     
    boolean
     
    org.apache.jena.rdf.model.RDFNode
     
    int
     
    org.apache.jena.rdf.model.RDFNode
     
    int
     
    void
     
    void
    set(org.apache.jena.rdf.model.RDFNode e)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.Iterator

    forEachRemaining
  • Field Details

    • cursorCell

      protected org.apache.jena.rdf.model.RDFList cursorCell
      The current list node
    • reachedEnd

      protected boolean reachedEnd
    • seenCell

      protected org.apache.jena.rdf.model.RDFList seenCell
      The most recently seen node
    • currentIndex

      protected int currentIndex
  • Constructor Details

    • RDFListIterator

      protected RDFListIterator(org.apache.jena.rdf.model.RDFList head, int currentIndex)
      Construct an iterator for walking the list starting at head
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<org.apache.jena.rdf.model.RDFNode>
      Specified by:
      hasNext in interface ListIterator<org.apache.jena.rdf.model.RDFNode>
    • getNextCell

      protected org.apache.jena.rdf.model.RDFList getNextCell(org.apache.jena.rdf.model.RDFList cell)
    • next

      public org.apache.jena.rdf.model.RDFNode next()
      Specified by:
      next in interface Iterator<org.apache.jena.rdf.model.RDFNode>
      Specified by:
      next in interface ListIterator<org.apache.jena.rdf.model.RDFNode>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<org.apache.jena.rdf.model.RDFNode>
      Specified by:
      remove in interface ListIterator<org.apache.jena.rdf.model.RDFNode>
    • getPreviousCell

      protected org.apache.jena.rdf.model.RDFList getPreviousCell()
    • hasPrevious

      public boolean hasPrevious()
      Specified by:
      hasPrevious in interface ListIterator<org.apache.jena.rdf.model.RDFNode>
    • previous

      public org.apache.jena.rdf.model.RDFNode previous()
      Specified by:
      previous in interface ListIterator<org.apache.jena.rdf.model.RDFNode>
    • nextIndex

      public int nextIndex()
      Specified by:
      nextIndex in interface ListIterator<org.apache.jena.rdf.model.RDFNode>
    • previousIndex

      public int previousIndex()
      Specified by:
      previousIndex in interface ListIterator<org.apache.jena.rdf.model.RDFNode>
    • set

      public void set(org.apache.jena.rdf.model.RDFNode e)
      Specified by:
      set in interface ListIterator<org.apache.jena.rdf.model.RDFNode>
    • add

      public void add(org.apache.jena.rdf.model.RDFNode e)
      Specified by:
      add in interface ListIterator<org.apache.jena.rdf.model.RDFNode>