Package com.priint.pubserverapi.document
Record Class CheckOutCommand
java.lang.Object
java.lang.Record
com.priint.pubserverapi.document.CheckOutCommand
public record CheckOutCommand(String sessionId, DocumentPointer documentPointer, boolean forciblyFetchParentDocumentFiles, Set<ObtainableItem> itemsToFetch, CheckOutCommand.ExistingLockHandlingMethod existingLockHandlingMethod, CheckOutCommand.LockingMethod lockingMethod)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic classstatic final recordstatic interfacestatic final recordstatic final recordstatic interfacestatic final record -
Constructor Summary
ConstructorsConstructorDescriptionCheckOutCommand(String sessionId, DocumentPointer documentPointer, boolean forciblyFetchParentDocumentFiles, Set<ObtainableItem> itemsToFetch, CheckOutCommand.ExistingLockHandlingMethod existingLockHandlingMethod, CheckOutCommand.LockingMethod lockingMethod) Creates an instance of aCheckOutCommandrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns the value of thedocumentPointerrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexistingLockHandlingMethodrecord component.booleanReturns the value of theforciblyFetchParentDocumentFilesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theitemsToFetchrecord component.Returns the value of thelockingMethodrecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CheckOutCommand
public CheckOutCommand(String sessionId, DocumentPointer documentPointer, boolean forciblyFetchParentDocumentFiles, Set<ObtainableItem> itemsToFetch, CheckOutCommand.ExistingLockHandlingMethod existingLockHandlingMethod, CheckOutCommand.LockingMethod lockingMethod) Creates an instance of aCheckOutCommandrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentdocumentPointer- the value for thedocumentPointerrecord componentforciblyFetchParentDocumentFiles- the value for theforciblyFetchParentDocumentFilesrecord componentitemsToFetch- the value for theitemsToFetchrecord componentexistingLockHandlingMethod- the value for theexistingLockHandlingMethodrecord componentlockingMethod- the value for thelockingMethodrecord 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
-
forciblyFetchParentDocumentFiles
public boolean forciblyFetchParentDocumentFiles()Returns the value of theforciblyFetchParentDocumentFilesrecord component.- Returns:
- the value of the
forciblyFetchParentDocumentFilesrecord component
-
itemsToFetch
Returns the value of theitemsToFetchrecord component.- Returns:
- the value of the
itemsToFetchrecord component
-
existingLockHandlingMethod
Returns the value of theexistingLockHandlingMethodrecord component.- Returns:
- the value of the
existingLockHandlingMethodrecord component
-
lockingMethod
Returns the value of thelockingMethodrecord component.- Returns:
- the value of the
lockingMethodrecord component
-