Class AnnotatedClass<T extends Annotation>

java.lang.Object
edu.cmu.tetrad.annotation.AnnotatedClass<T>
Type Parameters:
T - the type of the annotation
All Implemented Interfaces:
Serializable

public final class AnnotatedClass<T extends Annotation> extends Object implements Serializable
Represents a class that encapsulates a class along with its associated annotation.
See Also:
  • Constructor Details

    • AnnotatedClass

      public AnnotatedClass(Class<?> clazz, T annotation)
      Creates an annotated class.
      Parameters:
      clazz - class
      annotation - annotation
  • Method Details

    • clazz

      public Class<?> clazz()
      Gets the class.
      Returns:
      class
    • annotation

      public T annotation()
      Gets the annotation.
      Returns:
      annotation
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object