public enum GiornoDellaSettimana extends java.lang.Enum<GiornoDellaSettimana>
Enum Constant and Description |
---|
DOMENICA |
GIOVEDI |
LUNEDI |
MARTEDI |
MERCOLEDI |
SABATO |
VENERDI |
Modifier and Type | Method and Description |
---|---|
static GiornoDellaSettimana |
getGiorno(Data d)
Restituisce il giorno della settimana corrispondente alla data fornita come argomento.
|
GiornoDellaSettimana |
precedente()
Restituisce il riferimento all'oggetto che rappresenta il giorno precedente a quello che esegue
il metodo.
|
GiornoDellaSettimana |
successivo()
Restituisce il riferimento all'oggetto che rappresenta il giorno successivo a quello che esegue
il metodo.
|
java.lang.String |
toString() |
static GiornoDellaSettimana |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GiornoDellaSettimana[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GiornoDellaSettimana LUNEDI
public static final GiornoDellaSettimana MARTEDI
public static final GiornoDellaSettimana MERCOLEDI
public static final GiornoDellaSettimana GIOVEDI
public static final GiornoDellaSettimana VENERDI
public static final GiornoDellaSettimana SABATO
public static final GiornoDellaSettimana DOMENICA
public static GiornoDellaSettimana[] values()
for (GiornoDellaSettimana c : GiornoDellaSettimana.values()) System.out.println(c);
public static GiornoDellaSettimana 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 toString()
toString
in class java.lang.Enum<GiornoDellaSettimana>
public GiornoDellaSettimana successivo()
public GiornoDellaSettimana precedente()
public static GiornoDellaSettimana getGiorno(Data d)
d
- la data di cui si vuole stabilire il giorno.