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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionBatchConfig(com.google.common.hash.HashFunction hashFunction, int maxSize, Map<String, String> headers, Proxy proxy, HttpUtil.DownloadProgressListener listener) Creates an instance of aBatchConfigrecord class.
- 
Method SummaryModifier 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- 
hashFunctionprivate final com.google.common.hash.HashFunction hashFunctionThe field for thehashFunctionrecord component.
- 
maxSizeprivate final int maxSizeThe field for themaxSizerecord component.
- 
headersThe field for theheadersrecord component.
- 
proxyThe field for theproxyrecord component.
- 
listenerThe field for thelistenerrecord component.
 
- 
- 
Constructor Details- 
BatchConfigpublic 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 the- hashFunctionrecord component
- maxSize- the value for the- maxSizerecord component
- headers- the value for the- headersrecord component
- proxy- the value for the- proxyrecord component
- listener- the value for the- listenerrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
hashFunctionpublic com.google.common.hash.HashFunction hashFunction()Returns the value of thehashFunctionrecord component.- Returns:
- the value of the hashFunctionrecord component
 
- 
maxSizepublic int maxSize()Returns the value of themaxSizerecord component.- Returns:
- the value of the maxSizerecord component
 
- 
headersReturns the value of theheadersrecord component.- Returns:
- the value of the headersrecord component
 
- 
proxyReturns the value of theproxyrecord component.- Returns:
- the value of the proxyrecord component
 
- 
listenerReturns the value of thelistenerrecord component.- Returns:
- the value of the listenerrecord component
 
 
-