Class DualUnionIteration<E,X extends Exception>
- java.lang.Object
-
- org.eclipse.rdf4j.common.iteration.DualUnionIteration<E,X>
-
- All Implemented Interfaces:
AutoCloseable
,CloseableIteration<E,X>
,Iteration<E,X>
@Deprecated(since="4.1.0") public class DualUnionIteration<E,X extends Exception> extends Object implements CloseableIteration<E,X>
Deprecated.Provides a bag union of the two provided iterations.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
Deprecated.Closes this iteration, freeing any resources that it is holding.static <E,X extends Exception>
CloseableIteration<E,X>getInstance(CloseableIteration<E,X> leftIteration, CloseableIteration<E,X> rightIteration)
Deprecated.E
getNextElement()
Deprecated.static <E,X extends Exception>
CloseableIteration<? extends E,X>getWildcardInstance(CloseableIteration<? extends E,X> leftIteration, CloseableIteration<? extends E,X> rightIteration)
Deprecated.boolean
hasNext()
Deprecated.Returns true if the iteration has more elements.E
next()
Deprecated.Returns the next element in the iteration.void
remove()
Deprecated.Throws anUnsupportedOperationException
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.common.iteration.CloseableIteration
stream
-
-
-
-
Method Detail
-
getWildcardInstance
public static <E,X extends Exception> CloseableIteration<? extends E,X> getWildcardInstance(CloseableIteration<? extends E,X> leftIteration, CloseableIteration<? extends E,X> rightIteration)
Deprecated.
-
getInstance
public static <E,X extends Exception> CloseableIteration<E,X> getInstance(CloseableIteration<E,X> leftIteration, CloseableIteration<E,X> rightIteration)
Deprecated.
-
hasNext
public final boolean hasNext() throws X extends Exception
Deprecated.Description copied from interface:Iteration
Returns true if the iteration has more elements. (In other words, returns true ifIteration.next()
would return an element rather than throwing a NoSuchElementException.)
-
next
public final E next() throws X extends Exception
Deprecated.Description copied from interface:Iteration
Returns the next element in the iteration.
-
remove
public void remove()
Deprecated.Throws anUnsupportedOperationException
.
-
close
public final void close() throws X extends Exception
Deprecated.Description copied from interface:CloseableIteration
Closes this iteration, freeing any resources that it is holding. If the iteration has already been closed then invoking this method has no effect.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseableIteration<E,X extends Exception>
- Throws:
X extends Exception
-
-