MAP0809
Enum TipoCarta

java.lang.Object
  extended by java.lang.Enum<TipoCarta>
      extended by MAP0809.TipoCarta
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TipoCarta>

public enum TipoCarta
extends java.lang.Enum<TipoCarta>


Enum Constant Summary
Asso
           
Cinque
           
Donna
           
Due
           
Fante
           
Quattro
           
Re
           
Sei
           
Sette
           
Tre
           
 
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
 

Enum Constant Detail

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
Method Detail

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