Record Class ImportFailurePolicy
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ImportFailurePolicy
public record ImportFailurePolicy(boolean failOnUnsupportedClassVersion, boolean failOnDamagedArchive)
extends Record
Caller policy for packaging failures that may otherwise be collected as diagnostics.
-
Constructor Summary
ConstructorsConstructorDescriptionImportFailurePolicy(boolean failOnUnsupportedClassVersion, boolean failOnDamagedArchive) Creates an instance of aImportFailurePolicyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImportFailurePolicyfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefailOnDamagedArchiverecord component.booleanReturns the value of thefailOnUnsupportedClassVersionrecord component.final inthashCode()Returns a hash code value for this object.static ImportFailurePolicystrict()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ImportFailurePolicy
public ImportFailurePolicy(boolean failOnUnsupportedClassVersion, boolean failOnDamagedArchive) Creates an instance of aImportFailurePolicyrecord class.- Parameters:
failOnUnsupportedClassVersion- the value for thefailOnUnsupportedClassVersionrecord componentfailOnDamagedArchive- the value for thefailOnDamagedArchiverecord component
-
-
Method Details
-
collectDiagnostics
-
strict
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
failOnUnsupportedClassVersion
public boolean failOnUnsupportedClassVersion()Returns the value of thefailOnUnsupportedClassVersionrecord component.- Returns:
- the value of the
failOnUnsupportedClassVersionrecord component
-
failOnDamagedArchive
public boolean failOnDamagedArchive()Returns the value of thefailOnDamagedArchiverecord component.- Returns:
- the value of the
failOnDamagedArchiverecord component
-