private static class MergedAnnotationPredicates.FirstRunOfPredicate<A extends java.lang.annotation.Annotation> extends java.lang.Object implements java.util.function.Predicate<MergedAnnotation<A>>
Predicate
implementation used for
MergedAnnotationPredicates.firstRunOf(Function)
.Modifier and Type | Field and Description |
---|---|
private boolean |
hasLastValue |
private java.lang.Object |
lastValue |
private java.util.function.Function<? super MergedAnnotation<A>,?> |
valueExtractor |
Constructor and Description |
---|
FirstRunOfPredicate(java.util.function.Function<? super MergedAnnotation<A>,?> valueExtractor) |
Modifier and Type | Method and Description |
---|---|
boolean |
test(MergedAnnotation<A> annotation) |
private final java.util.function.Function<? super MergedAnnotation<A extends java.lang.annotation.Annotation>,?> valueExtractor
private boolean hasLastValue
@Nullable private java.lang.Object lastValue
FirstRunOfPredicate(java.util.function.Function<? super MergedAnnotation<A>,?> valueExtractor)
public boolean test(@Nullable MergedAnnotation<A> annotation)
test
in interface java.util.function.Predicate<MergedAnnotation<A extends java.lang.annotation.Annotation>>