| Package | Description |
|---|---|
| org.apache.jena.atlas.iterator |
| Modifier and Type | Method and Description |
|---|---|
Iter<T> |
Iter.append(Iterator<T> iter)
Join on an
Iterator.. |
static <T> Iter<T> |
Iter.concat(Iter<T> iter1,
Iter<T> iter2)
An
Iter of 2 Iter's |
static <T> Iter<T> |
Iter.concat(Iterator<T> iter1,
Iterator<T> iter2)
An
Iterator of 2 Iterator's. |
Iter<T> |
Iter.distinct()
Return an {:@code Iter} that will see each element of the underlying iterator only once.
|
Iter<T> |
Iter.distinctAdjacent()
Remove adjacent duplicates.
|
Iter<T> |
Iter.dropUntil(Predicate<T> predicate)
Create an
Iter such that elements from the front until
a predicate test become true are dropped then return all remaining elements
are iterated over. |
Iter<T> |
Iter.dropWhile(Predicate<T> predicate)
Create an
Iter such that elements from the front while
a predicate test become true are dropped then return all remaining elements
are iterated over. |
Iter<T> |
Iter.filter(Predicate<T> filter)
Filter by predicate
|
<R> Iter<R> |
Iter.flatMap(Function<T,Iterator<R>> converter)
FlatMap each element using given function of element to iterator of mapped elements.s
|
static <T> Iter<T> |
Iter.iter(Collection<T> collection) |
static <T> Iter<T> |
Iter.iter(Iter<T> iter) |
static <T> Iter<T> |
Iter.iter(Iterator<T> iterator) |
<R> Iter<R> |
Iter.map(Function<T,R> converter)
Map each element using given function
|
static <T> Iter<T> |
Iter.nullIter() |
Iter<T> |
Iter.operate(Consumer<T> action)
Apply an action to everything in the stream, yielding a stream of the
original items.
|
Iter<T> |
Iter.removeNulls()
Remove nulls
|
static <T> Iter<T> |
Iter.singletonIter(T item) |
Iter<T> |
Iter.take(int N)
Return an Iter that yields at most the first N items
|
Iter<T> |
Iter.takeUntil(Predicate<T> predicate)
Create an
Iter such that it yields elements until a predicate test on
the elements becomes true, end the iteration. |
Iter<T> |
Iter.takeWhile(Predicate<T> predicate)
Create an
Iter such that it yields elements while a predicate test on
the elements is true, end the iteration. |
| Modifier and Type | Method and Description |
|---|---|
static <T> Iter<T> |
Iter.concat(Iter<T> iter1,
Iter<T> iter2)
An
Iter of 2 Iter's |
static <T> Iter<T> |
Iter.concat(Iter<T> iter1,
Iter<T> iter2)
An
Iter of 2 Iter's |
static <T> Iter<T> |
Iter.iter(Iter<T> iter) |
Licenced under the Apache License, Version 2.0