public enum ImageSizeRestriction extends java.lang.Enum<ImageSizeRestriction>
Enum Constant and Description |
---|
DIMENSIONS_256_X_256_OR_SMALLER
All images are 256x256 pixels or smaller.
|
DIMENSIONS_64_X_64
All images are exactly 64x64 pixels, unless required otherwise.
|
DIMENSIONS_64_x_64_OR_SMALLER
All images are 64x64 pixels or smaller.
|
NO_RESTRICTIONS
No restrictions on image size.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
get a description of the image size restriction.
|
byte |
getMask()
get the mask used to set the appropriate bits in the flag byte in the ID3v2.4 extended header.
|
java.lang.String |
toString()
get a string representation of the image size restriction.
|
static ImageSizeRestriction |
valueOf(int imageSizeRestriction)
converts an integral value to its corresponding image size restriction enum.
|
static ImageSizeRestriction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ImageSizeRestriction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageSizeRestriction NO_RESTRICTIONS
public static final ImageSizeRestriction DIMENSIONS_256_X_256_OR_SMALLER
public static final ImageSizeRestriction DIMENSIONS_64_x_64_OR_SMALLER
public static final ImageSizeRestriction DIMENSIONS_64_X_64
public static ImageSizeRestriction[] values()
for (ImageSizeRestriction c : ImageSizeRestriction.values()) System.out.println(c);
public static ImageSizeRestriction valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getDescription()
public byte getMask()
public static ImageSizeRestriction valueOf(int imageSizeRestriction) throws java.lang.IllegalArgumentException
imageSizeRestriction
- integral value to be converted to a image size restriction enum.java.lang.IllegalArgumentException
- if the integral value is not a valid image size restriction.public java.lang.String toString()
toString
in class java.lang.Enum<ImageSizeRestriction>