Module org.glavo.classfile
Package org.glavo.classfile.impl
Record Class UnboundAttribute.UnboundModuleHashInfo
java.lang.Object
java.lang.Record
org.glavo.classfile.impl.UnboundAttribute.UnboundModuleHashInfo
- All Implemented Interfaces:
ModuleHashInfo
- Enclosing class:
UnboundAttribute<T extends Attribute<T>>
public static record UnboundAttribute.UnboundModuleHashInfo(ModuleEntry moduleName, byte[] hash)
extends Record
implements ModuleHashInfo
-
Constructor Summary
ConstructorsConstructorDescriptionUnboundModuleHashInfo(ModuleEntry moduleName, byte[] hash) Creates an instance of aUnboundModuleHashInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.byte[]hash()Returns the value of thehashrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themoduleNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UnboundModuleHashInfo
Creates an instance of aUnboundModuleHashInforecord class.- Parameters:
moduleName- the value for themoduleNamerecord componenthash- the value for thehashrecord component
-
-
Method Details
-
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. -
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. -
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). -
moduleName
Returns the value of themoduleNamerecord component.- Specified by:
moduleNamein interfaceModuleHashInfo- Returns:
- the value of the
moduleNamerecord component
-
hash
public byte[] hash()Returns the value of thehashrecord component.- Specified by:
hashin interfaceModuleHashInfo- Returns:
- the value of the
hashrecord component
-