Record Class CoverData
java.lang.Object
java.lang.Record
lol.trq.orpheus.source.CoverData
- Record Components:
key- identifies the image; equal keys mean equal imagesbytes- PNG, JPEG, BMP or GIF data; not modified by the library
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]bytes()Returns the value of thebytesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.static CoverDataof(byte[] bytes) Wraps image bytes under a key derived from their content.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CoverData
-
-
Method Details
-
of
Wraps image bytes under a key derived from their content. -
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). -
key
-
bytes
-