Improve Fluent Interface Javadoc
This commit is contained in:
parent
c989f6cb21
commit
c27291fd27
@ -11,15 +11,14 @@ import java.util.function.Predicate;
|
|||||||
import static java.lang.String.valueOf;
|
import static java.lang.String.valueOf;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fluent interface pattern is useful when you want to provide an easy readable, flowing API. Those
|
* The Fluent Interface pattern is useful when you want to provide an easy readable, flowing API. Those
|
||||||
* interfaces tend to mimic domain specific languages, so they can nearly be read as human
|
* interfaces tend to mimic domain specific languages, so they can nearly be read as human languages.
|
||||||
* languages.
|
|
||||||
* <p>
|
* <p>
|
||||||
* In this example two implementations of a {@link FluentIterable} interface are given. The
|
* In this example two implementations of a {@link FluentIterable} interface are given. The
|
||||||
* SimpleFluentIterable evaluates eagerly and would be too costly for real world applications. The
|
* {@link SimpleFluentIterable} evaluates eagerly and would be too costly for real world applications.
|
||||||
* LazyFluentIterable is evaluated on termination. Their usage is demonstrated with a simple number
|
* The {@link LazyFluentIterable} is evaluated on termination. Their usage is demonstrated with a
|
||||||
* list that is filtered, transformed and collected. The result is printed afterwards.
|
* simple number list that is filtered, transformed and collected. The result is printed afterwards.
|
||||||
* <p>
|
*
|
||||||
*/
|
*/
|
||||||
public class App {
|
public class App {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user