@Test public void testHasAnnotation() { assertThat(none.hasAnnotation(), is(false)); assertThat(none.annotatedWith(Simple.class).hasAnnotation(), is(true)); assertThat(none.annotatedWith(nameAnnotation).hasAnnotation(), is(true)); }
public abstract boolean hasAnnotation();
PotentialAnnotation { public abstract boolean hasAnnotation(); }
PotentialAnnotation { public abstract boolean hasAnnotation(); private  PotentialAnnotation(); }
PotentialAnnotation { public abstract boolean hasAnnotation(); private  PotentialAnnotation(); static PotentialAnnotation none(); static PotentialAnnotation from(Key<?> key); PotentialAnnotation annotatedWith(Class<? extends Annotation> annotationType); PotentialAnnotation annotatedWith(Annotation annotation); abstract boolean hasAnnotation(); Key<T> getKey(Class<T> type); abstract Key<T> getKey(TypeLiteral<T> type); abstract T accept(Visitor<T> visitor); @Override abstract boolean equals(Object o); @Override abstract int hashCode(); @Override abstract String toString(); }
PotentialAnnotation { public abstract boolean hasAnnotation(); private  PotentialAnnotation(); static PotentialAnnotation none(); static PotentialAnnotation from(Key<?> key); PotentialAnnotation annotatedWith(Class<? extends Annotation> annotationType); PotentialAnnotation annotatedWith(Annotation annotation); abstract boolean hasAnnotation(); Key<T> getKey(Class<T> type); abstract Key<T> getKey(TypeLiteral<T> type); abstract T accept(Visitor<T> visitor); @Override abstract boolean equals(Object o); @Override abstract int hashCode(); @Override abstract String toString();  }