@Test public void testStream() { Function<Annotation, Class<?>> getType = Annotation::annotationType; assertThat(this.testee.stream().map(getType)).contains(MetaAnnotation.class, TestAnnotation.class); }
public Stream<Annotation> stream() { return StreamSupport.stream(this.spliterator(), false); }
Annotations implements Iterable<Annotation> { public Stream<Annotation> stream() { return StreamSupport.stream(this.spliterator(), false); } }
Annotations implements Iterable<Annotation> { public Stream<Annotation> stream() { return StreamSupport.stream(this.spliterator(), false); } Annotations(AnnotatedElement annotatedElement); }
Annotations implements Iterable<Annotation> { public Stream<Annotation> stream() { return StreamSupport.stream(this.spliterator(), false); } Annotations(AnnotatedElement annotatedElement); static Annotations annotations(AnnotatedElement annotatedElement); boolean contains(Class<? extends Annotation> type); boolean containsName(String name); @SuppressWarnings("unchecked") T get(Class<T> type); Stream<Annotation> stream(); @Override @Nonnull Iterator<Annotation> iterator(); Map<Class<? extends Annotation>, Annotation> getAnnotations(); }
Annotations implements Iterable<Annotation> { public Stream<Annotation> stream() { return StreamSupport.stream(this.spliterator(), false); } Annotations(AnnotatedElement annotatedElement); static Annotations annotations(AnnotatedElement annotatedElement); boolean contains(Class<? extends Annotation> type); boolean containsName(String name); @SuppressWarnings("unchecked") T get(Class<T> type); Stream<Annotation> stream(); @Override @Nonnull Iterator<Annotation> iterator(); Map<Class<? extends Annotation>, Annotation> getAnnotations();  }