Record Class ParsedModuleRequire
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ParsedModuleRequire
- All Implemented Interfaces:
Comparable<ParsedModuleRequire>
public record ParsedModuleRequire(String moduleName, int flags, Optional<String> compiledVersion)
extends Record
implements Comparable<ParsedModuleRequire>
One requires directive exactly as declared in a Module attribute.
-
Constructor Summary
ConstructorsConstructorDescriptionParsedModuleRequire(String moduleName, int flags, Optional<String> compiledVersion) Creates an instance of aParsedModuleRequirerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ParsedModuleRequire other) Returns the value of thecompiledVersionrecord component.final 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.Returns the value of themoduleNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParsedModuleRequire
Creates an instance of aParsedModuleRequirerecord class.- Parameters:
moduleName- the value for themoduleNamerecord componentflags- the value for theflagsrecord componentcompiledVersion- the value for thecompiledVersionrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ParsedModuleRequire>
-
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. -
moduleName
Returns the value of themoduleNamerecord component.- Returns:
- the value of the
moduleNamerecord component
-
flags
public int flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
compiledVersion
-