Contents
Record Class UpdateService.DownloadTask
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.update.UpdateService.DownloadTask
- Enclosing class:
UpdateService
public static record UpdateService.DownloadTask(CompletableFuture<Boolean> future, Thread thread)
extends Record
Download task handle for cancellation.
-
Constructor Summary
ConstructorsConstructorDescriptionDownloadTask(CompletableFuture<Boolean> future, Thread thread) Creates an instance of aDownloadTaskrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.future()Returns the value of thefuturerecord component.final inthashCode()Returns a hash code value for this object.thread()Returns the value of thethreadrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DownloadTask
Creates an instance of aDownloadTaskrecord class.- Parameters:
future- the value for thefuturerecord componentthread- the value for thethreadrecord 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). -
future
Returns the value of thefuturerecord component.- Returns:
- the value of the
futurerecord component
-
thread
Returns the value of thethreadrecord component.- Returns:
- the value of the
threadrecord component
-