Top Description Fields Constructors Methods
io.vertx.core.impl.future

pack-priv Class Mapping<T, U>

extends Operation<U>
implements Listener<T>
Class Inheritance
All Implemented Interfaces
io.vertx.core.impl.future.Listener
Imports
io.vertx.core.impl.ContextInternal, java.util.function.Function

Function map transformation.
Author
Julien Viet

Field Summary

Modifier and TypeField and Description
private final Function<T, U>

Constructor Summary

AccessConstructor and Description
pack-priv
Mapping(ContextInternal context, Function<T, U> successMapper)

Method Summary

Modifier and TypeMethod and Description
public void
onFailure(Throwable
the failure
failure
)

Implements io.vertx.core.impl.future.Listener.onFailure.

Signal the failure

public void
onSuccess(T
the value
value
)

Implements io.vertx.core.impl.future.Listener.onSuccess.

Signal the success.

Field Detail

successMapperback to summary
private final Function<T, U> successMapper

Constructor Detail

Mappingback to summary
pack-priv Mapping(ContextInternal context, Function<T, U> successMapper)

Method Detail

onFailureback to summary
public void onFailure(Throwable failure)

Implements io.vertx.core.impl.future.Listener.onFailure.

Doc from io.vertx.core.impl.future.Listener.onFailure.

Signal the failure

Parameters
failure:Throwable

the failure

Annotations
@Override
onSuccessback to summary
public void onSuccess(T value)

Implements io.vertx.core.impl.future.Listener.onSuccess.

Doc from io.vertx.core.impl.future.Listener.onSuccess.

Signal the success.

Parameters
value:T

the value

Annotations
@Override