Functor: rewrite map() javadoc
This commit is contained in:
parent
ccf3a11157
commit
fdc4cad4e4
1 changed files with 4 additions and 4 deletions
|
@ -33,12 +33,12 @@ import java.util.function.Function;
|
||||||
public interface Functor<T> {
|
public interface Functor<T> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Map the content of the functor through the function.
|
* Applies the function to the value within the Functor, returning the result within a Functor.
|
||||||
*
|
*
|
||||||
* @param f the function
|
* @param f the function to apply
|
||||||
* @param <R> the type the functor maps to
|
* @param <R> the type of the result of the function
|
||||||
*
|
*
|
||||||
* @return the new functor
|
* @return a Functor containing the result of the function {@code f} applied to the value
|
||||||
*/
|
*/
|
||||||
<R> Functor<R> map(Function<T, R> f);
|
<R> Functor<R> map(Function<T, R> f);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue