Record Class ExtensionContext.DecodedImage
java.lang.Object
java.lang.Record
org.openpatch.scratch.extension.ExtensionContext.DecodedImage
- Enclosing interface:
ExtensionContext
public static record ExtensionContext.DecodedImage(int width, int height, int[] argb)
extends Record
Decoded pixels from an image format of an extension's.
-
Constructor Summary
ConstructorsConstructorDescriptionDecodedImage(int width, int height, int[] argb) Creates an instance of aDecodedImagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionint[]argb()Returns the value of theargbrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
DecodedImage
public DecodedImage(int width, int height, int[] argb) Creates an instance of aDecodedImagerecord class.- Parameters:
width- the value for thewidthrecord componentheight- the value for theheightrecord componentargb- the value for theargbrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
argb
public int[] argb()Returns the value of theargbrecord component.- Returns:
- the value of the
argbrecord component
-