Record Class PackageDescriptorImpl

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

public record PackageDescriptorImpl(String name, org.hibernate.boot.archive.spi.InputStreamAccess streamAccess) extends Record implements org.hibernate.boot.archive.scan.spi.PackageDescriptor, Serializable
See Also:
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
     
    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

    • PackageDescriptorImpl

      public PackageDescriptorImpl(String name, org.hibernate.boot.archive.spi.InputStreamAccess streamAccess)
      Creates an instance of a PackageDescriptorImpl record class.
      Parameters:
      name - the value for the name 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.PackageDescriptor
    • getStreamAccess

      public org.hibernate.boot.archive.spi.InputStreamAccess getStreamAccess()
      Specified by:
      getStreamAccess in interface org.hibernate.boot.archive.scan.spi.PackageDescriptor
    • 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
    • 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