Package | Description |
---|---|
org.apache.jena.atlas.iterator |
Modifier and Type | Class and Description |
---|---|
class |
FilterDistinctAdjacent<T> |
class |
FilterOutNulls<T> |
class |
FilterStack<T>
Add a filter to a chain - the original filter is called after this new sub-filter.
|
class |
FilterUnique<T> |
Modifier and Type | Method and Description |
---|---|
boolean |
Iter.every(Filter<T> filter) |
static <T> boolean |
Iter.every(Iterable<? extends T> stream,
Filter<T> filter)
Return true if every element of stream passes the filter (reads the
stream)
|
static <T> boolean |
Iter.every(Iterator<? extends T> stream,
Filter<T> filter)
Return true if every element of stream passes the filter (reads the
stream until the first element not passing the filter)
|
Iter<T> |
Iter.filter(Filter<T> filter) |
static <T> Iterator<T> |
Iter.filter(Iterable<? extends T> stream,
Filter<T> filter) |
static <T> Iterator<T> |
Iter.filter(Iterator<? extends T> stream,
Filter<T> filter) |
static <T> T |
Iter.first(Collection<T> collection,
Filter<T> filter) |
T |
Iter.first(Filter<T> filter) |
static <T> T |
Iter.first(Iterator<T> iter,
Filter<T> filter) |
static <T> int |
Iter.firstIndex(Collection<T> collection,
Filter<T> filter) |
int |
Iter.firstIndex(Filter<T> filter) |
static <T> int |
Iter.firstIndex(Iterator<T> iter,
Filter<T> filter) |
static <T> T |
Iter.last(Collection<T> collection,
Filter<T> filter) |
T |
Iter.last(Filter<T> filter) |
static <T> T |
Iter.last(Iterator<T> iter,
Filter<T> filter) |
static <T> int |
Iter.lastIndex(Collection<T> collection,
Filter<T> filter) |
int |
Iter.lastIndex(Filter<T> filter) |
static <T> int |
Iter.lastIndex(Iterator<T> iter,
Filter<T> filter) |
static <T> Iterator<T> |
Iter.notFilter(Iterable<? extends T> stream,
Filter<T> filter) |
static <T> Iterator<T> |
Iter.notFilter(Iterator<? extends T> stream,
Filter<T> filter) |
boolean |
Iter.some(Filter<T> filter) |
static <T> boolean |
Iter.some(Iterable<? extends T> stream,
Filter<T> filter)
Return true if every element of stream passes the filter (reads the
stream until the first element passing the filter)
|
static <T> boolean |
Iter.some(Iterator<? extends T> stream,
Filter<T> filter)
Return true if one or more elements of stream passes the filter (reads
the stream to first element passing the filter)
|
Constructor and Description |
---|
FilterStack(Filter<T> other) |
FilterStack(Filter<T> other,
boolean callOldFilterFirst) |
Licenced under the Apache License, Version 2.0