Package net.minecraft.server.packs
Record Class DownloadQueue.BatchConfig
java.lang.Object
java.lang.Record
net.minecraft.server.packs.DownloadQueue.BatchConfig
- Enclosing class:
DownloadQueue
-
Field Summary
Modifier and TypeFieldDescriptionprivate final com.google.common.hash.HashFunction
The field for thehashFunction
record component.The field for theheaders
record component.private final HttpUtil.DownloadProgressListener
The field for thelistener
record component.private final int
The field for themaxSize
record component.private final Proxy
The field for theproxy
record component. -
Constructor Summary
ConstructorDescriptionBatchConfig
(com.google.common.hash.HashFunction hashFunction, int maxSize, Map<String, String> headers, Proxy proxy, HttpUtil.DownloadProgressListener listener) Creates an instance of aBatchConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.com.google.common.hash.HashFunction
Returns the value of thehashFunction
record component.headers()
Returns the value of theheaders
record component.listener()
Returns the value of thelistener
record component.int
maxSize()
Returns the value of themaxSize
record component.proxy()
Returns the value of theproxy
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
hashFunction
private final com.google.common.hash.HashFunction hashFunctionThe field for thehashFunction
record component. -
maxSize
private final int maxSizeThe field for themaxSize
record component. -
headers
The field for theheaders
record component. -
proxy
The field for theproxy
record component. -
listener
The field for thelistener
record component.
-
-
Constructor Details
-
BatchConfig
public BatchConfig(com.google.common.hash.HashFunction hashFunction, int maxSize, Map<String, String> headers, Proxy proxy, HttpUtil.DownloadProgressListener listener) Creates an instance of aBatchConfig
record class.- Parameters:
hashFunction
- the value for thehashFunction
record componentmaxSize
- the value for themaxSize
record componentheaders
- the value for theheaders
record componentproxy
- the value for theproxy
record componentlistener
- the value for thelistener
record 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
hashFunction
public com.google.common.hash.HashFunction hashFunction()Returns the value of thehashFunction
record component.- Returns:
- the value of the
hashFunction
record component
-
maxSize
public int maxSize()Returns the value of themaxSize
record component.- Returns:
- the value of the
maxSize
record component
-
headers
Returns the value of theheaders
record component.- Returns:
- the value of the
headers
record component
-
proxy
Returns the value of theproxy
record component.- Returns:
- the value of the
proxy
record component
-
listener
Returns the value of thelistener
record component.- Returns:
- the value of the
listener
record component
-