Record Class GlTransientMemory.PersistentMapping.Rotation

java.lang.Object
java.lang.Record
com.mojang.blaze3d.opengl.GlTransientMemory.PersistentMapping.Rotation
All Implemented Interfaces:
Runnable
Enclosing class:
GlTransientMemory.PersistentMapping

private static record GlTransientMemory.PersistentMapping.Rotation(Runnable staging, Runnable gpu, Runnable gpuMapped) extends Record implements Runnable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Runnable
    The field for the gpu record component.
    private final Runnable
    The field for the gpuMapped record component.
    private final Runnable
    The field for the staging record component.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Rotation(Runnable staging, Runnable gpu, Runnable gpuMapped)
    Creates an instance of a Rotation record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    gpu()
    Returns the value of the gpu record component.
    Returns the value of the gpuMapped record component.
    final int
    Returns a hash code value for this object.
    void
    run()
     
    Returns the value of the staging record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • staging

      private final Runnable staging
      The field for the staging record component.
    • gpu

      private final Runnable gpu
      The field for the gpu record component.
    • gpuMapped

      private final Runnable gpuMapped
      The field for the gpuMapped record component.
  • Constructor Details

    • Rotation

      private Rotation(Runnable staging, Runnable gpu, Runnable gpuMapped)
      Creates an instance of a Rotation record class.
      Parameters:
      staging - the value for the staging record component
      gpu - the value for the gpu record component
      gpuMapped - the value for the gpuMapped record component
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • staging

      public Runnable staging()
      Returns the value of the staging record component.
      Returns:
      the value of the staging record component
    • gpu

      public Runnable gpu()
      Returns the value of the gpu record component.
      Returns:
      the value of the gpu record component
    • gpuMapped

      public Runnable gpuMapped()
      Returns the value of the gpuMapped record component.
      Returns:
      the value of the gpuMapped record component