Class QueryIterDefaulting

  • All Implemented Interfaces:
    java.util.Iterator<Binding>, org.apache.jena.atlas.io.Printable, org.apache.jena.atlas.lib.Closeable, QueryIterator, PrintSerializable

    public class QueryIterDefaulting
    extends QueryIterSub
    An iterator that returns at least one element from another iterator or a default value (once) if the wrapped iterator returns nothing.
    • Method Detail

      • wasDefaultObject

        public boolean wasDefaultObject()
        Returns true if the returned binding was the default object. Undef if before the iterator's first .hasNext()