MergedAnnotations.
| Modifier and Type | Class and Description |
|---|---|
| private static class | MergedAnnotationPredicates.FirstRunOfPredicate<A extends Annotation>
|
| private static class | MergedAnnotationPredicates.UniquePredicate<A extends Annotation, K>
|
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <A extends Annotation> Predicate | Returns: aPredicate that matches the first run of the extracted
valuesfunction used to extract the value to check valueExtractor)Create a new stateful, single use |
| public static < the annotation type A extends Annotation> Predicate | Returns: aPredicate to test the annotation typethe names that should be matched typeNames)Create a new |
| public static < the annotation type A extends Annotation> Predicate | Returns: aPredicate to test the annotation typethe types that should be matched types)Create a new |
| public static < the annotation type A extends Annotation> Predicate | Returns: aPredicate to test the annotation typethe type names or classes that should be matched types)Create a new |
| public static <A extends Annotation, K> Predicate | Returns: aPredicate that matches a unique annotation based on the
extracted keyfunction used to extract the key used to test for
uniqueness keyExtractor)Create a new stateful, single use |
| MergedAnnotationPredicates | back to summary |
|---|---|
| private MergedAnnotationPredicates() | |
| firstRunOf | back to summary |
|---|---|
| public static <A extends Annotation> Predicate Create a new stateful, single use Note This predicate only matches the first run. Once the extracted
value changes, the predicate always returns
| |
| typeIn | back to summary |
|---|---|
| public static <A extends Annotation> Predicate Create a new
| |
| typeIn | back to summary |
|---|---|
| public static <A extends Annotation> Predicate Create a new
| |
| typeIn | back to summary |
|---|---|
| public static <A extends Annotation> Predicate Create a new
| |
| unique | back to summary |
|---|---|
| public static <A extends Annotation, K> Predicate Create a new stateful, single use
| |
Predicate implementation used for
MergedAnnotationPredicates#firstRunOf(Function).
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private Object | |
| private final Function |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | test(MergedAnnotation<A>
the input argument annotation)Implements java. |
| hasLastValue | back to summary |
|---|---|
| private boolean hasLastValue | |
| lastValue | back to summary |
|---|---|
| private Object lastValue
| |
| valueExtractor | back to summary |
|---|---|
| private final Function<? super MergedAnnotation<A>, ?> valueExtractor | |
| FirstRunOfPredicate | back to summary |
|---|---|
| pack-priv FirstRunOfPredicate(Function<? super MergedAnnotation<A>, ?> valueExtractor) | |
| test | back to summary |
|---|---|
| public boolean test(MergedAnnotation<A> annotation) Implements java. Doc from java. Evaluates this predicate on the given argument.
| |
Predicate implementation used for
MergedAnnotationPredicates#unique(Function).
| Modifier and Type | Field and Description |
|---|---|
| private final Function | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | test(MergedAnnotation<A>
the input argument annotation)Implements java. |
| keyExtractor | back to summary |
|---|---|
| private final Function<? super MergedAnnotation<A>, K> keyExtractor | |
| seen | back to summary |
|---|---|
| private final Set<K> seen | |
| UniquePredicate | back to summary |
|---|---|
| pack-priv UniquePredicate(Function<? super MergedAnnotation<A>, K> keyExtractor) | |
| test | back to summary |
|---|---|
| public boolean test(MergedAnnotation<A> annotation) Implements java. Doc from java. Evaluates this predicate on the given argument.
| |