Package ch.so.agi.gretl.internal.ftp
Record Class FtpUploadRequest
java.lang.Object
java.lang.Record
ch.so.agi.gretl.internal.ftp.FtpUploadRequest
public record FtpUploadRequest(FtpConnectionSpec connection, Path localFile, String remoteDir, FtpFileType fileType)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFtpUploadRequest(FtpConnectionSpec connection, Path localFile, String remoteDir, FtpFileType fileType) Creates an instance of aFtpUploadRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectionrecord component.final booleanIndicates whether some other object is "equal to" this one.fileType()Returns the value of thefileTyperecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelocalFilerecord component.Returns the value of theremoteDirrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FtpUploadRequest
public FtpUploadRequest(FtpConnectionSpec connection, Path localFile, String remoteDir, FtpFileType fileType) Creates an instance of aFtpUploadRequestrecord class.- Parameters:
connection- the value for theconnectionrecord componentlocalFile- the value for thelocalFilerecord componentremoteDir- the value for theremoteDirrecord componentfileType- the value for thefileTyperecord 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 withObjects::equals(Object,Object). -
connection
Returns the value of theconnectionrecord component.- Returns:
- the value of the
connectionrecord component
-
localFile
Returns the value of thelocalFilerecord component.- Returns:
- the value of the
localFilerecord component
-
remoteDir
Returns the value of theremoteDirrecord component.- Returns:
- the value of the
remoteDirrecord component
-
fileType
Returns the value of thefileTyperecord component.- Returns:
- the value of the
fileTyperecord component
-