Record Class ImageData
java.lang.Object
java.lang.Record
dev.pfaff.altargui.libimage.ImageData
-
Constructor Summary
ConstructorsConstructorDescriptionImageData
(ImageInfo info, MemorySegment pixels) Creates an instance of aImageData
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.info()
Returns the value of theinfo
record component.pixels()
Returns the value of thepixels
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ImageData
Creates an instance of aImageData
record class.- Parameters:
info
- the value for theinfo
record componentpixels
- the value for thepixels
record component
-
-
Method Details
-
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)
. -
info
Returns the value of theinfo
record component.- Returns:
- the value of the
info
record component
-
pixels
Returns the value of thepixels
record component.- Returns:
- the value of the
pixels
record component
-