Record Class JavaModuleRequire
java.lang.Object
java.lang.Record
dev.archunitjava.model.JavaModuleRequire
- All Implemented Interfaces:
Comparable<JavaModuleRequire>
public record JavaModuleRequire(String moduleName, int flags, Optional<String> compiledVersion)
extends Record
implements Comparable<JavaModuleRequire>
One unresolved JPMS requires directive with its exact modifier mask.
-
Constructor Summary
ConstructorsConstructorDescriptionJavaModuleRequire(String moduleName, int flags, Optional<String> compiledVersion) Creates an instance of aJavaModuleRequirerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(JavaModuleRequire 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.booleanfinal StringtoString()Returns a string representation of this record class.boolean
-
Constructor Details
-
JavaModuleRequire
Creates an instance of aJavaModuleRequirerecord class.- Parameters:
moduleName- the value for themoduleNamerecord componentflags- the value for theflagsrecord componentcompiledVersion- the value for thecompiledVersionrecord component
-
-
Method Details
-
transitive
public boolean transitive() -
staticPhase
public boolean staticPhase() -
compareTo
- Specified by:
compareToin interfaceComparable<JavaModuleRequire>
-
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
-