Record Class ScanResultImpl

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

public record ScanResultImpl(Set<org.hibernate.boot.archive.scan.spi.PackageDescriptor> packageDescriptorSet, Set<org.hibernate.boot.archive.scan.spi.ClassDescriptor> classDescriptorSet, Set<org.hibernate.boot.archive.scan.spi.MappingFileDescriptor> mappingFileSet) extends Record implements org.hibernate.boot.archive.scan.spi.ScanResult, Serializable
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    ScanResultImpl(Set<org.hibernate.boot.archive.scan.spi.PackageDescriptor> packageDescriptorSet, Set<org.hibernate.boot.archive.scan.spi.ClassDescriptor> classDescriptorSet, Set<org.hibernate.boot.archive.scan.spi.MappingFileDescriptor> mappingFileSet)
    Creates an instance of a ScanResultImpl record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Set<org.hibernate.boot.archive.scan.spi.ClassDescriptor>
    Returns the value of the classDescriptorSet record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Set<org.hibernate.boot.archive.scan.spi.ClassDescriptor>
     
    Set<org.hibernate.boot.archive.scan.spi.MappingFileDescriptor>
     
    Set<org.hibernate.boot.archive.scan.spi.PackageDescriptor>
     
    final int
    Returns a hash code value for this object.
    Set<org.hibernate.boot.archive.scan.spi.MappingFileDescriptor>
    Returns the value of the mappingFileSet record component.
    Set<org.hibernate.boot.archive.scan.spi.PackageDescriptor>
    Returns the value of the packageDescriptorSet 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

    • ScanResultImpl

      public ScanResultImpl(Set<org.hibernate.boot.archive.scan.spi.PackageDescriptor> packageDescriptorSet, Set<org.hibernate.boot.archive.scan.spi.ClassDescriptor> classDescriptorSet, Set<org.hibernate.boot.archive.scan.spi.MappingFileDescriptor> mappingFileSet)
      Creates an instance of a ScanResultImpl record class.
      Parameters:
      packageDescriptorSet - the value for the packageDescriptorSet record component
      classDescriptorSet - the value for the classDescriptorSet record component
      mappingFileSet - the value for the mappingFileSet record component
  • Method Details

    • getLocatedPackages

      public Set<org.hibernate.boot.archive.scan.spi.PackageDescriptor> getLocatedPackages()
      Specified by:
      getLocatedPackages in interface org.hibernate.boot.archive.scan.spi.ScanResult
    • getLocatedClasses

      public Set<org.hibernate.boot.archive.scan.spi.ClassDescriptor> getLocatedClasses()
      Specified by:
      getLocatedClasses in interface org.hibernate.boot.archive.scan.spi.ScanResult
    • getLocatedMappingFiles

      public Set<org.hibernate.boot.archive.scan.spi.MappingFileDescriptor> getLocatedMappingFiles()
      Specified by:
      getLocatedMappingFiles in interface org.hibernate.boot.archive.scan.spi.ScanResult
    • 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
    • hashCode

      public final 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
    • equals

      public final boolean equals(Object o)
      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:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • packageDescriptorSet

      public Set<org.hibernate.boot.archive.scan.spi.PackageDescriptor> packageDescriptorSet()
      Returns the value of the packageDescriptorSet record component.
      Returns:
      the value of the packageDescriptorSet record component
    • classDescriptorSet

      public Set<org.hibernate.boot.archive.scan.spi.ClassDescriptor> classDescriptorSet()
      Returns the value of the classDescriptorSet record component.
      Returns:
      the value of the classDescriptorSet record component
    • mappingFileSet

      public Set<org.hibernate.boot.archive.scan.spi.MappingFileDescriptor> mappingFileSet()
      Returns the value of the mappingFileSet record component.
      Returns:
      the value of the mappingFileSet record component