Contents
Record Class UpdateModule.DownloadProgress
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.update.UpdateModule.DownloadProgress
- Enclosing class:
UpdateModule
public static record UpdateModule.DownloadProgress(int percent, long downloadedBytes, long totalBytes, long etaSeconds)
extends Record
Download progress information.
-
Constructor Summary
ConstructorsConstructorDescriptionDownloadProgress(int percent, long downloadedBytes, long totalBytes, long etaSeconds) Creates an instance of aDownloadProgressrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedownloadedBytesrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theetaSecondsrecord component.final inthashCode()Returns a hash code value for this object.intpercent()Returns the value of thepercentrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalBytesrecord component.
-
Constructor Details
-
DownloadProgress
public DownloadProgress(int percent, long downloadedBytes, long totalBytes, long etaSeconds) Creates an instance of aDownloadProgressrecord class.- Parameters:
percent- the value for thepercentrecord componentdownloadedBytes- the value for thedownloadedBytesrecord componenttotalBytes- the value for thetotalBytesrecord componentetaSeconds- the value for theetaSecondsrecord 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. -
percent
public int percent()Returns the value of thepercentrecord component.- Returns:
- the value of the
percentrecord component
-
downloadedBytes
public long downloadedBytes()Returns the value of thedownloadedBytesrecord component.- Returns:
- the value of the
downloadedBytesrecord component
-
totalBytes
public long totalBytes()Returns the value of thetotalBytesrecord component.- Returns:
- the value of the
totalBytesrecord component
-
etaSeconds
public long etaSeconds()Returns the value of theetaSecondsrecord component.- Returns:
- the value of the
etaSecondsrecord component
-