Package ch.so.agi.gretl.internal.ftp
Record Class FtpDownloadRequest
java.lang.Object
java.lang.Record
ch.so.agi.gretl.internal.ftp.FtpDownloadRequest
public record FtpDownloadRequest(FtpConnectionSpec connection, Path localDir, String remoteDir, List<String> remoteFiles, FtpFileType fileType)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFtpDownloadRequest(FtpConnectionSpec connection, Path localDir, String remoteDir, List<String> remoteFiles, FtpFileType fileType) Creates an instance of aFtpDownloadRequestrecord 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.localDir()Returns the value of thelocalDirrecord component.Returns the value of theremoteDirrecord component.Returns the value of theremoteFilesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FtpDownloadRequest
public FtpDownloadRequest(FtpConnectionSpec connection, Path localDir, String remoteDir, List<String> remoteFiles, FtpFileType fileType) Creates an instance of aFtpDownloadRequestrecord class.- Parameters:
connection- the value for theconnectionrecord componentlocalDir- the value for thelocalDirrecord componentremoteDir- the value for theremoteDirrecord componentremoteFiles- the value for theremoteFilesrecord 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
-
localDir
Returns the value of thelocalDirrecord component.- Returns:
- the value of the
localDirrecord component
-
remoteDir
Returns the value of theremoteDirrecord component.- Returns:
- the value of the
remoteDirrecord component
-
remoteFiles
Returns the value of theremoteFilesrecord component.- Returns:
- the value of the
remoteFilesrecord component
-
fileType
Returns the value of thefileTyperecord component.- Returns:
- the value of the
fileTyperecord component
-