public final class Image extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Image.Format
The format of an image.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this
Image . |
String |
getData()
Gets the data as it would be represented for a Discord request.
|
Image.Format |
getFormat()
Gets the format of the image.
|
String |
getHash()
Gets the hash of the image.
|
int |
hashCode()
Gets the hash code value of the
getData() data}. |
static Image |
ofRaw(byte[] image,
Image.Format format)
Constructs an
Image utilizing raw image data and the Image.Format the image represents. |
String |
toString()
Gets the String represents of this
Image . |
public static Image ofRaw(byte[] image, Image.Format format)
Image
utilizing raw image data and the Image.Format
the image represents.image
- The raw image data. Must be non-null.format
- The Image.Format
the image represents. Must be non-null.Image
with hashed raw image data and the Image.Format
the image represents.public String getHash()
public Image.Format getFormat()
public String getData()
public boolean equals(@Nullable Object obj)
Image
.
The other object is considered equal if:
Image
and;getData()
data}.public int hashCode()
getData()
data}.