Record Class UserSession.DownloadRange
java.lang.Object
java.lang.Record
ecmwf.common.ecaccess.UserSession.DownloadRange
- All Implemented Interfaces:
Serializable
- Enclosing class:
UserSession
public static record UserSession.DownloadRange(long offset, long length)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDownloadRange(long offset, long length) Creates an instance of aDownloadRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longlength()Returns the value of thelengthrecord component.longoffset()Returns the value of theoffsetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DownloadRange
public DownloadRange(long offset, long length) Creates an instance of aDownloadRangerecord class.- Parameters:
offset- the value for theoffsetrecord componentlength- the value for thelengthrecord 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 with thecomparemethod from their corresponding wrapper classes. -
offset
public long offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
length
public long length()Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-