提交 1e830f72 编写于 作者: P Phillip Webb

Polish firstRunOf javadoc

上级 62a3e414
...@@ -82,9 +82,12 @@ public abstract class MergedAnnotationPredicates { ...@@ -82,9 +82,12 @@ public abstract class MergedAnnotationPredicates {
* Create a new stateful, single use {@link Predicate} that matches only * Create a new stateful, single use {@link Predicate} that matches only
* the first run of an extracted value. For example, * the first run of an extracted value. For example,
* {@code MergedAnnotationPredicates.firstRunOf(MergedAnnotation::distance)} * {@code MergedAnnotationPredicates.firstRunOf(MergedAnnotation::distance)}
* will return the first annotation and a subsequent run of the same distance. * will match the first annotation, and any subsequent run that have the
* <p>NOTE: This predicate only matches the first first run. Once the extracted * same distance.
* value changes, the predicate always returns {@code false}. * <p>NOTE: This predicate only matches the first run. Once the extracted
* value changes, the predicate always returns {@code false}. I.e. if you
* have a set of annotations with distances {@code [1, 1, 2, 1]} then only
* the first two will match.
* @param valueExtractor function used to extract the value to check * @param valueExtractor function used to extract the value to check
* @return a {@link Predicate} that matches the first run of the extracted * @return a {@link Predicate} that matches the first run of the extracted
* values * values
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册