public enum TextSizeRestriction extends java.lang.Enum<TextSizeRestriction>
Enum Constant and Description |
---|
CHARACTERS_1024
No string is longer than 1024 characters.
|
CHARACTERS_128
No string is longer than 128 characters.
|
CHARACTERS_30
No string is longer than 30 characters.
|
NO_RESTRICTIONS
No restrictions on text size.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
get a description of the text 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 text size restriction.
|
static TextSizeRestriction |
valueOf(int textSizeRestriction)
converts an integral value to its corresponding text size restriction enum.
|
static TextSizeRestriction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TextSizeRestriction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextSizeRestriction NO_RESTRICTIONS
public static final TextSizeRestriction CHARACTERS_1024
public static final TextSizeRestriction CHARACTERS_128
public static final TextSizeRestriction CHARACTERS_30
public static TextSizeRestriction[] values()
for (TextSizeRestriction c : TextSizeRestriction.values()) System.out.println(c);
public static TextSizeRestriction 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 TextSizeRestriction valueOf(int textSizeRestriction) throws java.lang.IllegalArgumentException
textSizeRestriction
- integral value to be converted to a text size restriction enum.java.lang.IllegalArgumentException
- if the integral value is not a valid text size restriction.public java.lang.String toString()
toString
in class java.lang.Enum<TextSizeRestriction>