Module org.glavo.classfile
Package org.glavo.classfile.impl
Record Class UnboundAttribute.UnboundModuleOpenInfo
java.lang.Object
java.lang.Record
org.glavo.classfile.impl.UnboundAttribute.UnboundModuleOpenInfo
- All Implemented Interfaces:
ModuleOpenInfo
- Enclosing class:
UnboundAttribute<T extends Attribute<T>>
public static record UnboundAttribute.UnboundModuleOpenInfo(PackageEntry openedPackage, int opensFlagsMask, List<ModuleEntry> opensTo)
extends Record
implements ModuleOpenInfo
-
Constructor Summary
ConstructorsConstructorDescriptionUnboundModuleOpenInfo(PackageEntry openedPackage, int opensFlagsMask, List<ModuleEntry> opensTo) Creates an instance of aUnboundModuleOpenInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theopenedPackagerecord component.intReturns the value of theopensFlagsMaskrecord component.opensTo()Returns the value of theopensTorecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glavo.classfile.attribute.ModuleOpenInfo
has, opensFlags
-
Constructor Details
-
UnboundModuleOpenInfo
public UnboundModuleOpenInfo(PackageEntry openedPackage, int opensFlagsMask, List<ModuleEntry> opensTo) Creates an instance of aUnboundModuleOpenInforecord class.- Parameters:
openedPackage- the value for theopenedPackagerecord componentopensFlagsMask- the value for theopensFlagsMaskrecord componentopensTo- the value for theopensTorecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
openedPackage
Returns the value of theopenedPackagerecord component.- Specified by:
openedPackagein interfaceModuleOpenInfo- Returns:
- the value of the
openedPackagerecord component
-
opensFlagsMask
public int opensFlagsMask()Returns the value of theopensFlagsMaskrecord component.- Specified by:
opensFlagsMaskin interfaceModuleOpenInfo- Returns:
- the value of the
opensFlagsMaskrecord component
-
opensTo
Returns the value of theopensTorecord component.- Specified by:
opensToin interfaceModuleOpenInfo- Returns:
- the value of the
opensTorecord component
-