|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tapestry5.func.Mapper<S,T>
public abstract class Mapper<S,T>
Base class used with Flow.map(Mapper) to
define how Flow values are mapped from one type
to another (or otherwise transformed).
| Constructor Summary | |
|---|---|
Mapper()
|
|
| Method Summary | ||
|---|---|---|
|
combine(Mapper<T,X> other)
Combines this mapper (S -->T) with another mapper (T -->X) to form a composite mapper (S --> X). |
|
abstract T |
map(S value)
Implemented in subclasses to map a source value to a target value. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Mapper()
| Method Detail |
|---|
public abstract T map(S value)
public final <X> Mapper<S,X> combine(Mapper<T,X> other)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||