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
ConstructorsConstructorDescriptionClassDescriptorImpl(String name, org.hibernate.boot.archive.scan.spi.ClassDescriptor.Categorization categorization, org.hibernate.boot.archive.spi.InputStreamAccess streamAccess) Creates an instance of aClassDescriptorImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.hibernate.boot.archive.scan.spi.ClassDescriptor.CategorizationReturns the value of thecategorizationrecord component.booleanIndicates whether some other object is "equal to" this one.org.hibernate.boot.archive.scan.spi.ClassDescriptor.CategorizationgetName()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
-
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 aClassDescriptorImplrecord class.- Parameters:
name- the value for thenamerecord componentcategorization- the value for thecategorizationrecord 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.ClassDescriptor
-
getCategorization
public org.hibernate.boot.archive.scan.spi.ClassDescriptor.Categorization getCategorization()- Specified by:
getCategorizationin interfaceorg.hibernate.boot.archive.scan.spi.ClassDescriptor
-
getStreamAccess
public org.hibernate.boot.archive.spi.InputStreamAccess getStreamAccess()- Specified by:
getStreamAccessin interfaceorg.hibernate.boot.archive.scan.spi.ClassDescriptor
-
toString
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
categorization
public org.hibernate.boot.archive.scan.spi.ClassDescriptor.Categorization categorization()Returns the value of thecategorizationrecord component.- Returns:
- the value of the
categorizationrecord component
-
streamAccess
public org.hibernate.boot.archive.spi.InputStreamAccess streamAccess()Returns the value of thestreamAccessrecord component.- Returns:
- the value of the
streamAccessrecord component
-