Record Class Cover
java.lang.Object
java.lang.Record
lol.trq.orpheus.cover.Cover
- Record Components:
key- identifies the image; the same key always means the same pixelswidth- width in pixelsheight- height in pixelsrgba- four bytes per pixel in R, G, B, A order, rows top to bottom, alpha not premultiplied. This is the cached array: do not modify itaverage- the average colour as 0xRRGGBBpalette- up to five dominant colours as 0xRRGGBB, most common first. Do not modify
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintaverage()Returns the value of theaveragerecord 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.key()Returns the value of thekeyrecord component.int[]palette()Returns the value of thepaletterecord component.byte[]rgba()Returns the value of thergbarecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
Cover
Creates an instance of aCoverrecord class.- Parameters:
key- the value for thekeyrecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentrgba- the value for thergbarecord componentaverage- the value for theaveragerecord componentpalette- the value for thepaletterecord 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. -
key
-
width
-
height
-
rgba
-
average
-
palette
-