Class VoidTypeDetailsImpl

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

public class VoidTypeDetailsImpl extends Object implements VoidTypeDetails
TypeDetails referring to a void or Void
  • Constructor Details

    • VoidTypeDetailsImpl

      public VoidTypeDetailsImpl(ClassDetails voidClassDetails)
  • Method Details

    • getClassDetails

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

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

      public VoidTypeDetails asVoidType()
      Description copied from interface: TypeDetails
      Cast this TypeDetails as a VoidTypeDetails, throwing an exception if it cannot be.
      Specified by:
      asVoidType in interface TypeDetails
      Specified by:
      asVoidType in interface VoidTypeDetails
    • 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
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object