Class ClassTypeDetailsImpl

java.lang.Object
org.hibernate.models.internal.ClassTypeDetailsImpl
All Implemented Interfaces:
ClassBasedTypeDetails, ClassTypeDetails, TypeDetails, TypeVariableScope

public class ClassTypeDetailsImpl extends Object implements ClassTypeDetails
  • Constructor Details

  • Method Details

    • getClassDetails

      public ClassDetails getClassDetails()
      Specified by:
      getClassDetails in interface ClassBasedTypeDetails
    • getName

      public String getName()
      Specified by:
      getName in interface ClassBasedTypeDetails
      Specified by:
      getName in interface TypeDetails
    • getTypeKind

      public TypeDetails.Kind getTypeKind()
      Specified by:
      getTypeKind in interface TypeDetails
    • resolveTypeVariable

      public TypeDetails resolveTypeVariable(TypeVariableDetails typeVariable)
      Description copied from interface: TypeVariableScope
      Resolve the type of the provided type variable relative to this scope.

      For example, given

       class Thing<I extends Number> {
           I id;
       }
       
      A call to this method on the Thing scope with the type variable representing I will return the I extends Number type variable definition itself.

      If this scope defines a corresponding type argument, the concrete type is returned. For example, given

       class Stuff extends Thing<Integer> {
       }
       
      This method will yield the Integer type details.
      Specified by:
      resolveTypeVariable in interface TypeVariableScope
      Parameters:
      typeVariable - The type variable to resolve
      Returns:
      The type variable's resolved type, or null if none could be found
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object