Enum Singleton
- java.lang.Object
-
- java.lang.Enum<Singleton>
-
- org.apache.abdera.i18n.rfc4646.enums.Singleton
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDeprecated()
java.lang.String
getDescription()
Singleton
getPreferred()
java.lang.String
getPreferredValue()
int
getRFC()
boolean
isDeprecated()
Subtag
newSubtag()
static Singleton
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Singleton
valueOf(Subtag subtag)
Returns the enum constant of this type with the specified name.static Singleton[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
A
public static final Singleton A
-
B
public static final Singleton B
-
C
public static final Singleton C
-
D
public static final Singleton D
-
E
public static final Singleton E
-
F
public static final Singleton F
-
G
public static final Singleton G
-
H
public static final Singleton H
-
I
public static final Singleton I
-
J
public static final Singleton J
-
K
public static final Singleton K
-
L
public static final Singleton L
-
M
public static final Singleton M
-
N
public static final Singleton N
-
O
public static final Singleton O
-
P
public static final Singleton P
-
Q
public static final Singleton Q
-
R
public static final Singleton R
-
S
public static final Singleton S
-
T
public static final Singleton T
-
U
public static final Singleton U
-
V
public static final Singleton V
-
W
public static final Singleton W
-
X
public static final Singleton X
-
Y
public static final Singleton Y
-
Z
public static final Singleton Z
-
-
Method Detail
-
values
public static Singleton[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Singleton c : Singleton.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Singleton valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getDescription
public java.lang.String getDescription()
-
getRFC
public int getRFC()
-
newSubtag
public Subtag newSubtag()
-
getDeprecated
public java.lang.String getDeprecated()
-
isDeprecated
public boolean isDeprecated()
-
getPreferredValue
public java.lang.String getPreferredValue()
-
getPreferred
public Singleton getPreferred()
-
valueOf
public static Singleton valueOf(Subtag subtag)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
subtag
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-