Record Class ModuleRuntimeAccessOptions.PackageAccess
java.lang.Object
java.lang.Record
com.netflix.module.ModuleRuntimeAccessOptions.PackageAccess
- Record Components:
sourceModule- the module containing the packagepackageName- the qualified package nametargetModule- the module receiving access
- Enclosing class:
ModuleRuntimeAccessOptions
-
Constructor Summary
ConstructorsConstructorDescriptionPackageAccess(String sourceModule, String packageName, String targetModule) Validates and creates a package access operation. -
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 thepackageNamerecord component.Returns the value of thesourceModulerecord component.Returns the value of thetargetModulerecord component.Returns the operand accepted by--add-exportsor--add-opens.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PackageAccess
-
-
Method Details
-
toFlagValue
Returns the operand accepted by--add-exportsor--add-opens.- Returns:
- the launcher option operand
-
toString
-
hashCode
-
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). -
sourceModule
Returns the value of thesourceModulerecord component.- Returns:
- the value of the
sourceModulerecord component
-
packageName
Returns the value of thepackageNamerecord component.- Returns:
- the value of the
packageNamerecord component
-
targetModule
Returns the value of thetargetModulerecord component.- Returns:
- the value of the
targetModulerecord component
-