Record Class PackageSelection
java.lang.Object
java.lang.Record
dev.archunitjava.selector.PackageSelection
public record PackageSelection(SelectorDescription selector, int examinedCount, List<JavaPackage> selected, List<ClassFileDiagnostic> classFileDiagnostics, List<TypeModelDiagnostic> modelDiagnostics, List<SelectionDiagnostic> selectionDiagnostics)
extends Record
Selected packages without discarding diagnostics from the underlying type model.
-
Constructor Summary
ConstructorsConstructorDescriptionPackageSelection(SelectorDescription selector, int examinedCount, List<JavaPackage> selected, List<ClassFileDiagnostic> classFileDiagnostics, List<TypeModelDiagnostic> modelDiagnostics, List<SelectionDiagnostic> selectionDiagnostics) Creates an instance of aPackageSelectionrecord 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.booleanbooleanisEmpty()Returns the value of themodelDiagnosticsrecord component.selected()Returns the value of theselectedrecord component.Returns the value of theselectionDiagnosticsrecord component.selector()Returns the value of theselectorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PackageSelection
public PackageSelection(SelectorDescription selector, int examinedCount, List<JavaPackage> selected, List<ClassFileDiagnostic> classFileDiagnostics, List<TypeModelDiagnostic> modelDiagnostics, List<SelectionDiagnostic> selectionDiagnostics) Creates an instance of aPackageSelectionrecord 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 componentselectionDiagnostics- the value for theselectionDiagnosticsrecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
importWasIncomplete
public boolean importWasIncomplete() -
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
-
selectionDiagnostics
Returns the value of theselectionDiagnosticsrecord component.- Returns:
- the value of the
selectionDiagnosticsrecord component
-