Class FixedWrappedParameters<T>

java.lang.Object
io.github.douira.glsl_transformer.transform.JobParameters
io.github.douira.glsl_transformer.transform.FixedWrappedParameters<T>

public class FixedWrappedParameters<T> extends JobParameters
The default WrappedParameters implementation uses the NonFixedJobParameters which means that it never produces cached execution plans. This class on the other hand causes execution plans to be cached if the contained parameter object is the same.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new job parameter wrapper.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Suppresses warnings because the cast results in an object where we don't care what the content of the type parameter T is since we're doing an object comparison anyways.
    Returns the wrapped job parameters.
    int
    Requires the implementation of the hashCode method.

    Methods inherited from class io.github.douira.glsl_transformer.transform.JobParameters

    equals

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FixedWrappedParameters

      public FixedWrappedParameters(T parameters)
      Creates a new job parameter wrapper.
      Parameters:
      parameters - The job parameters to wrap
  • Method Details

    • getContents

      public T getContents()
      Returns the wrapped job parameters.
      Returns:
      The wrapped job parameters
    • equals

      public boolean equals(JobParameters other)
      Suppresses warnings because the cast results in an object where we don't care what the content of the type parameter T is since we're doing an object comparison anyways.
      Specified by:
      equals in class JobParameters
      Parameters:
      other - The other job parameters to compare to
      Returns:
      true if the fixed parts of the two job parameters are equal
    • hashCode

      public int hashCode()
      Description copied from class: JobParameters
      Requires the implementation of the hashCode method.
      Specified by:
      hashCode in class JobParameters