public interface Mappable<X>
| Modifier and Type | Method and Description |
|---|---|
Mappable<X> |
filter(SerializablePredicate<X> f)
Adds a custom arbitrary filter that gets executed in the current
transformation chain.
|
<R> Mappable<R> |
flatMap(SerializableFunction<X,Iterable<R>> flatMapper)
Set an arbitrary `flatMap` transformation function, which returns list with
an arbitrary number of results per input data entry.
|
<R> Mappable<R> |
map(SerializableFunction<X,R> mapper)
Set an arbitrary `map` transformation function.
|
@Contract(pure=true) <R> Mappable<R> map(SerializableFunction<X,R> mapper)
R - an arbitrary data type which is the return type of the
transformation `map` functionmapper - function that will be applied to each data entry (osm entity
snapshot or contribution)@Contract(pure=true) <R> Mappable<R> flatMap(SerializableFunction<X,Iterable<R>> flatMapper)
R - an arbitrary data type which is the return type of the
transformation `map` functionflatMapper - function that will be applied to each data entry (osm
entity snapshot or contribution) and returns a list of results@Contract(pure=true) Mappable<X> filter(SerializablePredicate<X> f)
f - the filter function that determines if the respective data should
be passed on (when f returns true) or discarded (when f returns false)Copyright © 2016–2020 HeiGIT. All rights reserved.