Package de.bsvrz.ars.ars.persistence
Record Class LockedContainerDirectory
java.lang.Object
java.lang.Record
de.bsvrz.ars.ars.persistence.LockedContainerDirectory
- All Implemented Interfaces:
ContainerDirectory
,AutoCloseable
,Comparable<ContainerDirectory>
public record LockedContainerDirectory(SyncKey<IdDataIdentification> lock, de.bsvrz.dav.daf.main.archive.ArchiveDataKind archiveDataKind)
extends Record
implements ContainerDirectory, AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionLockedContainerDirectory
(SyncKey<IdDataIdentification> lock, de.bsvrz.dav.daf.main.archive.ArchiveDataKind archiveDataKind) Creates an instance of aLockedContainerDirectory
record class. -
Method Summary
Modifier and TypeMethodDescriptionde.bsvrz.dav.daf.main.archive.ArchiveDataKind
Returns the value of thearchiveDataKind
record component.void
close()
Gibt die Datenidentifikation zurückfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.lock()
Returns the value of thelock
record component.toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.bsvrz.ars.ars.persistence.ContainerDirectory
compareTo, getAspectId, getAtgId, getObjectId, getSimVariant
-
Constructor Details
-
LockedContainerDirectory
public LockedContainerDirectory(SyncKey<IdDataIdentification> lock, de.bsvrz.dav.daf.main.archive.ArchiveDataKind archiveDataKind) Creates an instance of aLockedContainerDirectory
record class.- Parameters:
lock
- the value for thelock
record componentarchiveDataKind
- the value for thearchiveDataKind
record component
-
-
Method Details
-
dataIdentification
Gibt die Datenidentifikation zurück- Specified by:
dataIdentification
in interfaceContainerDirectory
- Returns:
- Datenidentifikation
-
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. -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
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 withObjects::equals(Object,Object)
. -
lock
Returns the value of thelock
record component.- Returns:
- the value of the
lock
record component
-
archiveDataKind
public de.bsvrz.dav.daf.main.archive.ArchiveDataKind archiveDataKind()Returns the value of thearchiveDataKind
record component.- Specified by:
archiveDataKind
in interfaceContainerDirectory
- Returns:
- the value of the
archiveDataKind
record component
-