[Minor] add documentation about custom search expression on website

This commit is contained in:
Robert von Burg 2018-06-29 13:59:27 +02:00
parent e61a4f94f1
commit 352220702f
2 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,7 @@ import li.strolch.model.activity.Activity;
*
* @param <T>
*/
@FunctionalInterface
public interface SearchExpression<T extends StrolchRootElement> {
/**

View File

@ -120,6 +120,11 @@ search.where(id(isEqualTo("myId")) //
<p>Note how the predicates can be chained to the search expression, or passed as a parameter to the
expression.</p>
<p>In addition to using predefined search search expressions, one can also just pass a lambda expression which
performs a custom filter:</p>
<pre>
personSearch.where(person -> person.getName().length() == 3);</pre>
<p>See the
<a href="https://github.com/4treesCH/strolch/blob/develop/li.strolch.agent/src/test/java/li/strolch/search/StrolchSearchTest.java"
target="_blank">StrolchSearchTest</a> for many ways in which you can implement tests.</p>