Record Class SinglePixelLoadableTexture
java.lang.Object
java.lang.Record
dev.pfaff.altargui.texture.SinglePixelLoadableTexture
- All Implemented Interfaces:
LoadableTexture
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSinglePixelLoadableTexture
(Color color) Creates an instance of aSinglePixelLoadableTexture
record class. -
Method Summary
Modifier and TypeMethodDescriptioncolor()
Returns the value of thecolor
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.load()
Loads the texture synchronously.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
WHITE
-
-
Constructor Details
-
SinglePixelLoadableTexture
Creates an instance of aSinglePixelLoadableTexture
record class.- Parameters:
color
- the value for thecolor
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)
. -
color
Returns the value of thecolor
record component.- Returns:
- the value of the
color
record component
-