Record Class ClassDescriptorImpl

java.lang.Object
java.lang.Record
org.hibernate.archive.scan.internal.ClassDescriptorImpl
All Implemented Interfaces:
Serializable, org.hibernate.boot.archive.scan.spi.ClassDescriptor

public record ClassDescriptorImpl(String name, org.hibernate.boot.archive.scan.spi.ClassDescriptor.Categorization categorization, org.hibernate.boot.archive.spi.InputStreamAccess streamAccess) extends Record implements org.hibernate.boot.archive.scan.spi.ClassDescriptor, Serializable
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.hibernate.boot.archive.scan.spi.ClassDescriptor

    org.hibernate.boot.archive.scan.spi.ClassDescriptor.Categorization
  • Constructor Summary

    Constructors
    Constructor
    Description
    ClassDescriptorImpl(String name, org.hibernate.boot.archive.scan.spi.ClassDescriptor.Categorization categorization, org.hibernate.boot.archive.spi.InputStreamAccess streamAccess)
    Creates an instance of a ClassDescriptorImpl record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.hibernate.boot.archive.scan.spi.ClassDescriptor.Categorization
    Returns the value of the categorization record component.
    boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    org.hibernate.boot.archive.scan.spi.ClassDescriptor.Categorization
     
     
    org.hibernate.boot.archive.spi.InputStreamAccess
     
    int
    Returns a hash code value for this object.
    Returns the value of the name record component.
    org.hibernate.boot.archive.spi.InputStreamAccess
    Returns the value of the streamAccess record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ClassDescriptorImpl

      public ClassDescriptorImpl(String name, org.hibernate.boot.archive.scan.spi.ClassDescriptor.Categorization categorization, org.hibernate.boot.archive.spi.InputStreamAccess streamAccess)
      Creates an instance of a ClassDescriptorImpl record class.
      Parameters:
      name - the value for the name record component
      categorization - the value for the categorization record component
      streamAccess - the value for the streamAccess record component
  • Method Details

    • equals

      public boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • hashCode

      public int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • getName

      public String getName()
      Specified by:
      getName in interface org.hibernate.boot.archive.scan.spi.ClassDescriptor
    • getCategorization

      public org.hibernate.boot.archive.scan.spi.ClassDescriptor.Categorization getCategorization()
      Specified by:
      getCategorization in interface org.hibernate.boot.archive.scan.spi.ClassDescriptor
    • getStreamAccess

      public org.hibernate.boot.archive.spi.InputStreamAccess getStreamAccess()
      Specified by:
      getStreamAccess in interface org.hibernate.boot.archive.scan.spi.ClassDescriptor
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • categorization

      public org.hibernate.boot.archive.scan.spi.ClassDescriptor.Categorization categorization()
      Returns the value of the categorization record component.
      Returns:
      the value of the categorization record component
    • streamAccess

      public org.hibernate.boot.archive.spi.InputStreamAccess streamAccess()
      Returns the value of the streamAccess record component.
      Returns:
      the value of the streamAccess record component