Record Class ImageDataLoadableTexture
java.lang.Object
java.lang.Record
dev.pfaff.altargui.texture.ImageDataLoadableTexture
- All Implemented Interfaces:
LoadableTexture
public record ImageDataLoadableTexture(ImageData imageData)
extends Record
implements LoadableTexture
-
Constructor Summary
ConstructorsConstructorDescriptionImageDataLoadableTexture
(ImageData imageData) Creates an instance of aImageDataLoadableTexture
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theimageData
record component.load()
Loads the texture synchronously.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ImageDataLoadableTexture
Creates an instance of aImageDataLoadableTexture
record class.- Parameters:
imageData
- the value for theimageData
record component
-
-
Method Details
-
load
Description copied from interface:LoadableTexture
Loads the texture synchronously. This is meant to be called from a worker thread, not the main thread.- Specified by:
load
in interfaceLoadableTexture
-
toString
-
hashCode
-
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)
. -
imageData
Returns the value of theimageData
record component.- Returns:
- the value of the
imageData
record component
-