Class FixedWrappedParameters<T>
java.lang.Object
io.github.douira.glsl_transformer.transform.JobParameters
io.github.douira.glsl_transformer.transform.FixedWrappedParameters<T>
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(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.Returns the wrapped job parameters.inthashCode()Requires the implementation of the hashCode method.Methods inherited from class io.github.douira.glsl_transformer.transform.JobParameters
equals
-
Constructor Details
-
FixedWrappedParameters
Creates a new job parameter wrapper.- Parameters:
parameters- The job parameters to wrap
-
-
Method Details
-
getContents
Returns the wrapped job parameters.- Returns:
- The wrapped job parameters
-
equals
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:
equalsin classJobParameters- Parameters:
other- The other job parameters to compare to- Returns:
trueif the fixed parts of the two job parameters are equal
-
hashCode
public int hashCode()Description copied from class:JobParametersRequires the implementation of the hashCode method.- Specified by:
hashCodein classJobParameters
-