Record Class ParsedModulePackageDirective
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ParsedModulePackageDirective
- All Implemented Interfaces:
Comparable<ParsedModulePackageDirective>
public record ParsedModulePackageDirective(ParsedModulePackageDirective.Kind kind, String packageName, int flags, List<String> targetModules)
extends Record
implements Comparable<ParsedModulePackageDirective>
One exports or opens directive, including an empty or qualified target list.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionParsedModulePackageDirective(ParsedModulePackageDirective.Kind kind, String packageName, int flags, List<String> targetModules) Creates an instance of aParsedModulePackageDirectiverecord 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
-
ParsedModulePackageDirective
public ParsedModulePackageDirective(ParsedModulePackageDirective.Kind kind, String packageName, int flags, List<String> targetModules) Creates an instance of aParsedModulePackageDirectiverecord 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<ParsedModulePackageDirective>
-
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
-