public interface Transformer<FROM,TO> extends Function<FROM,TO>
Standard transformer transforming FROM to TO with or with a predicate.
| Modifier and Type | Method and Description |
|---|---|
default TO |
apply(FROM from) |
default TO |
transform(FROM from)
Transforms from one representation to another.
|
default TO |
transform(FROM from,
Predicate<FROM> predicate)
Transforms from one representation to another if a given predicate tests true.
|
default TO transform(FROM from)
Transforms from one representation to another.
from - input representationNullPointerException - if the argument was nulldefault TO transform(FROM from, Predicate<FROM> predicate)
Transforms from one representation to another if a given predicate tests true.
from - input representationpredicate - predicate to apply to input before transformationNullPointerException - if any argument was nullCopyright © 2016–2017. All rights reserved.