Class BeanAnnotationFinder.CacheEntryKey<T extends Annotation>

java.lang.Object
dev.orne.beans.BeanAnnotationFinder.CacheEntryKey<T>
Type Parameters:
T - The annotation type
Enclosing class:
BeanAnnotationFinder<T extends Annotation,L extends Annotation>

@API(status=INTERNAL, since="0.1") protected static final class BeanAnnotationFinder.CacheEntryKey<T extends Annotation> extends Object
Class level annotations cache entry. This class is immutable.
  • Constructor Details

    • CacheEntryKey

      public CacheEntryKey(@NotNull @NotNull Class<?> type, @NotNull @NotNull Class<T> annotationType)
      Creates a new instance.
      Parameters:
      type - The analyzed class
      annotationType - The annotation type searched
  • Method Details

    • getType

      @NotNull public @NotNull Class<?> getType()
      Returns the analyzed class.
      Returns:
      The analyzed class
    • getAnnotationType

      @NotNull public @NotNull Class<T> getAnnotationType()
      Returns the annotation type searched.
      Returns:
      The annotation type searched
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object