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
FieldsModifier and TypeFieldDescriptionprivate final com.google.common.hash.HashFunctionThe field for thehashFunctionrecord component.The field for theheadersrecord component.private final HttpUtil.DownloadProgressListenerThe field for thelistenerrecord component.private final intThe field for themaxSizerecord component.private final ProxyThe field for theproxyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBatchConfig(com.google.common.hash.HashFunction hashFunction, int maxSize, Map<String, String> headers, Proxy proxy, HttpUtil.DownloadProgressListener listener) Creates an instance of aBatchConfigrecord 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.com.google.common.hash.HashFunctionReturns the value of thehashFunctionrecord component.headers()Returns the value of theheadersrecord component.listener()Returns the value of thelistenerrecord component.intmaxSize()Returns the value of themaxSizerecord component.proxy()Returns the value of theproxyrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
hashFunction
private final com.google.common.hash.HashFunction hashFunctionThe field for thehashFunctionrecord component. -
maxSize
private final int maxSizeThe field for themaxSizerecord component. -
headers
The field for theheadersrecord component. -
proxy
The field for theproxyrecord component. -
listener
The field for thelistenerrecord 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 aBatchConfigrecord class.- Parameters:
hashFunction- the value for thehashFunctionrecord componentmaxSize- the value for themaxSizerecord componentheaders- the value for theheadersrecord componentproxy- the value for theproxyrecord componentlistener- the value for thelistenerrecord 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 thehashFunctionrecord component.- Returns:
- the value of the
hashFunctionrecord component
-
maxSize
public int maxSize()Returns the value of themaxSizerecord component.- Returns:
- the value of the
maxSizerecord component
-
headers
Returns the value of theheadersrecord component.- Returns:
- the value of the
headersrecord component
-
proxy
Returns the value of theproxyrecord component.- Returns:
- the value of the
proxyrecord component
-
listener
Returns the value of thelistenerrecord component.- Returns:
- the value of the
listenerrecord component
-