Record Class DownloadQueue.BatchConfig

java.lang.Object
java.lang.Record
net.minecraft.server.packs.DownloadQueue.BatchConfig
Enclosing class:
DownloadQueue

public static record DownloadQueue.BatchConfig(com.google.common.hash.HashFunction hashFunction, int maxSize, Map<String,String> headers, Proxy proxy, HttpUtil.DownloadProgressListener listener) extends Record
  • Field Details

    • hashFunction

      private final com.google.common.hash.HashFunction hashFunction
      The field for the hashFunction record component.
    • maxSize

      private final int maxSize
      The field for the maxSize record component.
    • headers

      private final Map<String,String> headers
      The field for the headers record component.
    • proxy

      private final Proxy proxy
      The field for the proxy record component.
    • listener

      private final HttpUtil.DownloadProgressListener listener
      The field for the listener 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 a BatchConfig record class.
      Parameters:
      hashFunction - the value for the hashFunction record component
      maxSize - the value for the maxSize record component
      headers - the value for the headers record component
      proxy - the value for the proxy record component
      listener - the value for the listener record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • hashFunction

      public com.google.common.hash.HashFunction hashFunction()
      Returns the value of the hashFunction record component.
      Returns:
      the value of the hashFunction record component
    • maxSize

      public int maxSize()
      Returns the value of the maxSize record component.
      Returns:
      the value of the maxSize record component
    • headers

      public Map<String,String> headers()
      Returns the value of the headers record component.
      Returns:
      the value of the headers record component
    • proxy

      public Proxy proxy()
      Returns the value of the proxy record component.
      Returns:
      the value of the proxy record component
    • listener

      Returns the value of the listener record component.
      Returns:
      the value of the listener record component