Package org.fastily.jwiki.dwrap
Class ImageInfo
java.lang.Object
org.fastily.jwiki.dwrap.DataEntry
org.fastily.jwiki.dwrap.ImageInfo
- All Implemented Interfaces:
Comparable<ImageInfo>
public final class ImageInfo extends DataEntry implements Comparable<ImageInfo>
Container object for a result returned by the ImageInfo MediaWiki module.
- Author:
- Fastily
-
Field Summary
Fields Modifier and Type Field Description int
height
The file's height (in pixels), if applicable.String
mime
The MIME string of the file.String
sha1
The sha1 hash for this fileint
size
The image size (in bytes)okhttp3.HttpUrl
url
The url of the full size image.int
width
The file's width (in pixels), if applicable. -
Method Summary
-
Field Details
-
size
public int sizeThe image size (in bytes) -
height
public int heightThe file's height (in pixels), if applicable. -
width
public int widthThe file's width (in pixels), if applicable. -
sha1
The sha1 hash for this file -
url
public okhttp3.HttpUrl urlThe url of the full size image. -
mime
The MIME string of the file.
-
-
Method Details
-
compareTo
Compares the timestamps of two ImageInfo objects. Orders items newer -> older.- Specified by:
compareTo
in interfaceComparable<ImageInfo>
-