Package kr.toxicity.library.dynamicuv
Record Class UVLoadContext
java.lang.Object
java.lang.Record
kr.toxicity.library.dynamicuv.UVLoadContext
- Record Components:
textureName- the texture nameindexFunction- the index functionbuildFunction- the build function
public record UVLoadContext(@NotNull UVTextureName textureName, @NotNull UVIndexFunction indexFunction, @NotNull UVBuildFunction buildFunction)
extends Record
Represents the context for loading UV models.
-
Constructor Summary
ConstructorsConstructorDescriptionUVLoadContext(@NotNull UVTextureName textureName, @NotNull UVIndexFunction indexFunction, @NotNull UVBuildFunction buildFunction) Creates an instance of aUVLoadContextrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull UVBuildFunctionReturns the value of thebuildFunctionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull UVIndexFunctionReturns the value of theindexFunctionrecord component.@NotNull UVTextureNameReturns the value of thetextureNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UVLoadContext
public UVLoadContext(@NotNull @NotNull UVTextureName textureName, @NotNull @NotNull UVIndexFunction indexFunction, @NotNull @NotNull UVBuildFunction buildFunction) Creates an instance of aUVLoadContextrecord class.- Parameters:
textureName- the value for thetextureNamerecord componentindexFunction- the value for theindexFunctionrecord componentbuildFunction- the value for thebuildFunctionrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
textureName
Returns the value of thetextureNamerecord component.- Returns:
- the value of the
textureNamerecord component
-
indexFunction
Returns the value of theindexFunctionrecord component.- Returns:
- the value of the
indexFunctionrecord component
-
buildFunction
Returns the value of thebuildFunctionrecord component.- Returns:
- the value of the
buildFunctionrecord component
-