Get an Iterable for iterating over all quads in the dataset.
This method is meant to be used with a Java for-each loop, e.g.:
for (Quad t : dataset.iterate()) {
System.out.println(t);
}
The behaviour of the iterator is not specified if
#add(Quad),
#remove(Quad) or
#clear(), are called on the
Dataset before it terminates. It is undefined if the returned
Iterator supports the
Iterator#remove() method.
Implementations may throw
ConcurrentModificationException from
Iterator methods if they detect a concurrency conflict while the Iterator
is active.
The
Iterable#iterator() must only be called once, that is the
Iterable must only be iterated over once. A
IllegalStateExceptionmay be thrown on attempt to reuse the Iterable.
The default implementation of this method will call
#stream() to
return its
Stream#iterator().