MAP0809
Enum TipoCarta
java.lang.Object
java.lang.Enum<TipoCarta>
MAP0809.TipoCarta
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<TipoCarta>
public enum TipoCarta
- extends java.lang.Enum<TipoCarta>
Method Summary |
static TipoCarta |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TipoCarta[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Asso
public static final TipoCarta Asso
Due
public static final TipoCarta Due
Tre
public static final TipoCarta Tre
Quattro
public static final TipoCarta Quattro
Cinque
public static final TipoCarta Cinque
Sei
public static final TipoCarta Sei
Sette
public static final TipoCarta Sette
Donna
public static final TipoCarta Donna
Fante
public static final TipoCarta Fante
Re
public static final TipoCarta Re
values
public static TipoCarta[] 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 (TipoCarta c : TipoCarta.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static TipoCarta 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 name
java.lang.NullPointerException
- if the argument is null