Record Class JavaModulePackageDirective
java.lang.Object
java.lang.Record
dev.archunitjava.model.JavaModulePackageDirective
- All Implemented Interfaces:
Comparable<JavaModulePackageDirective>
public record JavaModulePackageDirective(JavaModulePackageDirectiveKind kind, JavaPackageName packageName, int flags, List<String> targetModules)
extends Record
implements Comparable<JavaModulePackageDirective>
One unresolved exports or opens directive, qualified when targets are present.
-
Constructor Summary
ConstructorsConstructorDescriptionJavaModulePackageDirective(JavaModulePackageDirectiveKind kind, JavaPackageName packageName, int flags, List<String> targetModules) Creates an instance of aJavaModulePackageDirectiverecord class. -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanIndicates whether some other object is "equal to" this one.intflags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.Returns the value of thepackageNamerecord component.booleanReturns the value of thetargetModulesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JavaModulePackageDirective
public JavaModulePackageDirective(JavaModulePackageDirectiveKind kind, JavaPackageName packageName, int flags, List<String> targetModules) Creates an instance of aJavaModulePackageDirectiverecord class.- Parameters:
kind- the value for thekindrecord componentpackageName- the value for thepackageNamerecord componentflags- the value for theflagsrecord componenttargetModules- the value for thetargetModulesrecord component
-
-
Method Details
-
qualified
public boolean qualified() -
compareTo
- Specified by:
compareToin interfaceComparable<JavaModulePackageDirective>
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
packageName
Returns the value of thepackageNamerecord component.- Returns:
- the value of the
packageNamerecord component
-
flags
public int flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
targetModules
-