Record Class ModuleSelection
java.lang.Object
java.lang.Record
dev.archunitjava.selector.ModuleSelection
public record ModuleSelection(SelectorDescription selector, int examinedCount, List<JavaModule> selected, List<ClassFileDiagnostic> classFileDiagnostics, List<TypeModelDiagnostic> modelDiagnostics)
extends Record
Selected JPMS descriptors with retained import/model diagnostics.
-
Constructor Summary
ConstructorsConstructorDescriptionModuleSelection(SelectorDescription selector, int examinedCount, List<JavaModule> selected, List<ClassFileDiagnostic> classFileDiagnostics, List<TypeModelDiagnostic> modelDiagnostics) Creates an instance of aModuleSelectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassFileDiagnosticsrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theexaminedCountrecord component.final inthashCode()Returns a hash code value for this object.booleanisEmpty()Returns the value of themodelDiagnosticsrecord component.selected()Returns the value of theselectedrecord component.selector()Returns the value of theselectorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModuleSelection
public ModuleSelection(SelectorDescription selector, int examinedCount, List<JavaModule> selected, List<ClassFileDiagnostic> classFileDiagnostics, List<TypeModelDiagnostic> modelDiagnostics) Creates an instance of aModuleSelectionrecord class.- Parameters:
selector- the value for theselectorrecord componentexaminedCount- the value for theexaminedCountrecord componentselected- the value for theselectedrecord componentclassFileDiagnostics- the value for theclassFileDiagnosticsrecord componentmodelDiagnostics- the value for themodelDiagnosticsrecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
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. -
selector
Returns the value of theselectorrecord component.- Returns:
- the value of the
selectorrecord component
-
examinedCount
public int examinedCount()Returns the value of theexaminedCountrecord component.- Returns:
- the value of the
examinedCountrecord component
-
selected
Returns the value of theselectedrecord component.- Returns:
- the value of the
selectedrecord component
-
classFileDiagnostics
Returns the value of theclassFileDiagnosticsrecord component.- Returns:
- the value of the
classFileDiagnosticsrecord component
-
modelDiagnostics
Returns the value of themodelDiagnosticsrecord component.- Returns:
- the value of the
modelDiagnosticsrecord component
-