Record Class UserSession.DownloadFile
java.lang.Object
java.lang.Record
ecmwf.common.ecaccess.UserSession.DownloadFile
- Enclosing class:
UserSession
public static record UserSession.DownloadFile(FileListElement element, UserSession.DownloadOpener opener)
extends Record
File metadata and its request-scoped download operation.
-
Constructor Summary
ConstructorsConstructorDescriptionDownloadFile(FileListElement element, UserSession.DownloadOpener opener) Creates an instance of aDownloadFilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionelement()Returns the value of theelementrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.opener()Returns the value of theopenerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DownloadFile
Creates an instance of aDownloadFilerecord class.- Parameters:
element- the value for theelementrecord componentopener- the value for theopenerrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
element
Returns the value of theelementrecord component.- Returns:
- the value of the
elementrecord component
-
opener
Returns the value of theopenerrecord component.- Returns:
- the value of the
openerrecord component
-