Package de.bsvrz.ars.ars.repair
Record Class ScanMode
java.lang.Object
java.lang.Record
de.bsvrz.ars.ars.repair.ScanMode
- Record Components:
indexFiles- Sollen Indexdateien auf korrektes Format überprüft werden?containerFiles- Sollen Containerdateien auf korrektes Format und häufige Fehler überprüft werden?indexHeaderConsistency- Sollen die Indexdateien auf konsistenz mit den Containerheadern überprüft werden?containerHeaderConsistency- Sollen die Container-Header auf Konsistenz mit den Containerdaten überprüft werden?deleteBackupIndexFiles- Sollen die veralteten Backup-Index-Dateien automatisch gelöscht werden?fixErrors- Sollen gefundene Fehler gelöscht werden?
public record ScanMode(boolean indexFiles, boolean containerFiles, boolean indexHeaderConsistency, boolean containerHeaderConsistency, boolean deleteBackupIndexFiles, boolean fixErrors)
extends Record
Attribute, wie ein Überprüfungslauf der
PersistenceCheckRunner-Klasse durchgeführt werden soll.-
Constructor Summary
ConstructorsConstructorDescriptionScanMode(boolean indexFiles, boolean containerFiles, boolean indexHeaderConsistency, boolean containerHeaderConsistency, boolean deleteBackupIndexFiles, boolean fixErrors) Creates an instance of aScanModerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecontainerFilesrecord component.booleanReturns the value of thecontainerHeaderConsistencyrecord component.booleanReturns the value of thedeleteBackupIndexFilesrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefixErrorsrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theindexFilesrecord component.booleanReturns the value of theindexHeaderConsistencyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScanMode
public ScanMode(boolean indexFiles, boolean containerFiles, boolean indexHeaderConsistency, boolean containerHeaderConsistency, boolean deleteBackupIndexFiles, boolean fixErrors) Creates an instance of aScanModerecord class.- Parameters:
indexFiles- the value for theindexFilesrecord componentcontainerFiles- the value for thecontainerFilesrecord componentindexHeaderConsistency- the value for theindexHeaderConsistencyrecord componentcontainerHeaderConsistency- the value for thecontainerHeaderConsistencyrecord componentdeleteBackupIndexFiles- the value for thedeleteBackupIndexFilesrecord componentfixErrors- the value for thefixErrorsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
indexFiles
public boolean indexFiles()Returns the value of theindexFilesrecord component.- Returns:
- the value of the
indexFilesrecord component
-
containerFiles
public boolean containerFiles()Returns the value of thecontainerFilesrecord component.- Returns:
- the value of the
containerFilesrecord component
-
indexHeaderConsistency
public boolean indexHeaderConsistency()Returns the value of theindexHeaderConsistencyrecord component.- Returns:
- the value of the
indexHeaderConsistencyrecord component
-
containerHeaderConsistency
public boolean containerHeaderConsistency()Returns the value of thecontainerHeaderConsistencyrecord component.- Returns:
- the value of the
containerHeaderConsistencyrecord component
-
deleteBackupIndexFiles
public boolean deleteBackupIndexFiles()Returns the value of thedeleteBackupIndexFilesrecord component.- Returns:
- the value of the
deleteBackupIndexFilesrecord component
-
fixErrors
public boolean fixErrors()Returns the value of thefixErrorsrecord component.- Returns:
- the value of the
fixErrorsrecord component
-