Package com.priint.pubserverapi.document
Record Class CheckInCommand
java.lang.Object
java.lang.Record
com.priint.pubserverapi.document.CheckInCommand
public record CheckInCommand(String sessionId, DocumentPointer documentPointer, Lock.Holder lockHolder, boolean shouldLockBeReleased, Map<ObtainableItem,Set<CheckInCommand.FileHandle>> files)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionCheckInCommand(String sessionId, DocumentPointer documentPointer, Lock.Holder lockHolder, boolean shouldLockBeReleased, Map<ObtainableItem, Set<CheckInCommand.FileHandle>> files) Creates an instance of aCheckInCommandrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns the value of thedocumentPointerrecord component.final booleanIndicates whether some other object is "equal to" this one.files()Returns the value of thefilesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelockHolderrecord component.Returns the value of thesessionIdrecord component.booleanReturns the value of theshouldLockBeReleasedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CheckInCommand
public CheckInCommand(String sessionId, DocumentPointer documentPointer, Lock.Holder lockHolder, boolean shouldLockBeReleased, Map<ObtainableItem, Set<CheckInCommand.FileHandle>> files) Creates an instance of aCheckInCommandrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentdocumentPointer- the value for thedocumentPointerrecord componentlockHolder- the value for thelockHolderrecord componentshouldLockBeReleased- the value for theshouldLockBeReleasedrecord componentfiles- the value for thefilesrecord component
-
-
Method Details
-
builder
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
documentPointer
Returns the value of thedocumentPointerrecord component.- Returns:
- the value of the
documentPointerrecord component
-
lockHolder
Returns the value of thelockHolderrecord component.- Returns:
- the value of the
lockHolderrecord component
-
shouldLockBeReleased
public boolean shouldLockBeReleased()Returns the value of theshouldLockBeReleasedrecord component.- Returns:
- the value of the
shouldLockBeReleasedrecord component
-
files
Returns the value of thefilesrecord component.- Returns:
- the value of the
filesrecord component
-