Class JsonIterator

  • All Implemented Interfaces:
    java.util.Iterator<JsonObject>

    public class JsonIterator
    extends java.lang.Object
    implements java.util.Iterator<JsonObject>
    A JSON iterator for JsonObject's, that wraps a QueryIterator, and a list of result variables.
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonIterator​(QueryIterator queryIterator, java.util.List<java.lang.String> resultVars)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      JsonObject next()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, remove
    • Constructor Detail

      • JsonIterator

        public JsonIterator​(QueryIterator queryIterator,
                            java.util.List<java.lang.String> resultVars)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<JsonObject>