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
ConstructorsConstructorDescriptionPackageDescriptorImpl(String name, org.hibernate.boot.archive.spi.InputStreamAccess streamAccess) Creates an instance of aPackageDescriptorImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.getName()org.hibernate.boot.archive.spi.InputStreamAccessinthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.org.hibernate.boot.archive.spi.InputStreamAccessReturns the value of thestreamAccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PackageDescriptorImpl
public PackageDescriptorImpl(String name, org.hibernate.boot.archive.spi.InputStreamAccess streamAccess) Creates an instance of aPackageDescriptorImplrecord class.- Parameters:
name- the value for thenamerecord componentstreamAccess- the value for thestreamAccessrecord component
-
-
Method Details
-
equals
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 withObjects::equals(Object,Object). -
hashCode
-
getName
- Specified by:
getNamein interfaceorg.hibernate.boot.archive.scan.spi.PackageDescriptor
-
getStreamAccess
public org.hibernate.boot.archive.spi.InputStreamAccess getStreamAccess()- Specified by:
getStreamAccessin interfaceorg.hibernate.boot.archive.scan.spi.PackageDescriptor
-
toString
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
streamAccess
public org.hibernate.boot.archive.spi.InputStreamAccess streamAccess()Returns the value of thestreamAccessrecord component.- Returns:
- the value of the
streamAccessrecord component
-