Record Class DeviceInfo

java.lang.Object
java.lang.Record
com.mojang.blaze3d.systems.DeviceInfo

public record DeviceInfo(String name, String vendorName, String driverInfo, boolean isZZeroToOne, String backendName, float timestampPeriod, DeviceLimits limits, DeviceFeatures features, Set<String> underlyingExtensions, HintsAndWorkarounds hintsAndWorkarounds, DeviceType type) extends Record
  • Field Details

    • name

      private final String name
      The field for the name record component.
    • vendorName

      private final String vendorName
      The field for the vendorName record component.
    • driverInfo

      private final String driverInfo
      The field for the driverInfo record component.
    • isZZeroToOne

      private final boolean isZZeroToOne
      The field for the isZZeroToOne record component.
    • backendName

      private final String backendName
      The field for the backendName record component.
    • timestampPeriod

      private final float timestampPeriod
      The field for the timestampPeriod record component.
    • limits

      private final DeviceLimits limits
      The field for the limits record component.
    • features

      private final DeviceFeatures features
      The field for the features record component.
    • underlyingExtensions

      private final Set<String> underlyingExtensions
      The field for the underlyingExtensions record component.
    • hintsAndWorkarounds

      private final HintsAndWorkarounds hintsAndWorkarounds
      The field for the hintsAndWorkarounds record component.
    • type

      private final DeviceType type
      The field for the type record component.
  • Constructor Details

    • DeviceInfo

      public DeviceInfo(String name, String vendorName, String driverInfo, boolean isZZeroToOne, String backendName, float timestampPeriod, DeviceLimits limits, DeviceFeatures features, Set<String> underlyingExtensions, HintsAndWorkarounds hintsAndWorkarounds, DeviceType type)
      Creates an instance of a DeviceInfo record class.
      Parameters:
      name - the value for the name record component
      vendorName - the value for the vendorName record component
      driverInfo - the value for the driverInfo record component
      isZZeroToOne - the value for the isZZeroToOne record component
      backendName - the value for the backendName record component
      timestampPeriod - the value for the timestampPeriod record component
      limits - the value for the limits record component
      features - the value for the features record component
      underlyingExtensions - the value for the underlyingExtensions record component
      hintsAndWorkarounds - the value for the hintsAndWorkarounds record component
      type - the value for the type 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 the compare method from their corresponding wrapper classes.
      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.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • vendorName

      public String vendorName()
      Returns the value of the vendorName record component.
      Returns:
      the value of the vendorName record component
    • driverInfo

      public String driverInfo()
      Returns the value of the driverInfo record component.
      Returns:
      the value of the driverInfo record component
    • isZZeroToOne

      public boolean isZZeroToOne()
      Returns the value of the isZZeroToOne record component.
      Returns:
      the value of the isZZeroToOne record component
    • backendName

      public String backendName()
      Returns the value of the backendName record component.
      Returns:
      the value of the backendName record component
    • timestampPeriod

      public float timestampPeriod()
      Returns the value of the timestampPeriod record component.
      Returns:
      the value of the timestampPeriod record component
    • limits

      public DeviceLimits limits()
      Returns the value of the limits record component.
      Returns:
      the value of the limits record component
    • features

      public DeviceFeatures features()
      Returns the value of the features record component.
      Returns:
      the value of the features record component
    • underlyingExtensions

      public Set<String> underlyingExtensions()
      Returns the value of the underlyingExtensions record component.
      Returns:
      the value of the underlyingExtensions record component
    • hintsAndWorkarounds

      public HintsAndWorkarounds hintsAndWorkarounds()
      Returns the value of the hintsAndWorkarounds record component.
      Returns:
      the value of the hintsAndWorkarounds record component
    • type

      public DeviceType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component