@Test public void construct_withQualifiedName() { assertNotNull(Annotation.of(Immutable.class.getName())); }
public static Annotation of(@Nonnull final Class<?> annotationType) { Check.notNull(annotationType, "annotationType"); Check.stateIsTrue(annotationType.isAnnotation(), "requires an annotation"); return new Annotation(Type.of(annotationType)); }
Annotation { public static Annotation of(@Nonnull final Class<?> annotationType) { Check.notNull(annotationType, "annotationType"); Check.stateIsTrue(annotationType.isAnnotation(), "requires an annotation"); return new Annotation(Type.of(annotationType)); } }
Annotation { public static Annotation of(@Nonnull final Class<?> annotationType) { Check.notNull(annotationType, "annotationType"); Check.stateIsTrue(annotationType.isAnnotation(), "requires an annotation"); return new Annotation(Type.of(annotationType)); } Annotation(final Type annotationType); }
Annotation { public static Annotation of(@Nonnull final Class<?> annotationType) { Check.notNull(annotationType, "annotationType"); Check.stateIsTrue(annotationType.isAnnotation(), "requires an annotation"); return new Annotation(Type.of(annotationType)); } Annotation(final Type annotationType); static Annotation of(@Nonnull final Class<?> annotationType); static Annotation of(@Nonnull final java.lang.annotation.Annotation annotation); static Annotation of(@Nonnull final String annotationType); @Override boolean equals(final Object obj); Type getType(); @Override int hashCode(); boolean isImmutable(); boolean isNonnegative(); boolean isNonnull(); boolean isNotThreadSafe(); boolean isNullable(); @Override String toString(); }
Annotation { public static Annotation of(@Nonnull final Class<?> annotationType) { Check.notNull(annotationType, "annotationType"); Check.stateIsTrue(annotationType.isAnnotation(), "requires an annotation"); return new Annotation(Type.of(annotationType)); } Annotation(final Type annotationType); static Annotation of(@Nonnull final Class<?> annotationType); static Annotation of(@Nonnull final java.lang.annotation.Annotation annotation); static Annotation of(@Nonnull final String annotationType); @Override boolean equals(final Object obj); Type getType(); @Override int hashCode(); boolean isImmutable(); boolean isNonnegative(); boolean isNonnull(); boolean isNotThreadSafe(); boolean isNullable(); @Override String toString(); static final Annotation IMMUTABLE; static final Annotation NONNEGATIVE; static final Annotation NONNULL; static final Annotation NOT_THREAD_SAFE; static final Annotation NULLABLE; }