|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<GiornoDellaSettimana>
prog.utili.GiornoDellaSettimana
public enum GiornoDellaSettimana
Gli oggetti di questo tipo enumerativo rappresentano i giorni della settimana.
Enum Constant Summary | |
---|---|
DOMENICA
|
|
GIOVEDI
|
|
LUNEDI
|
|
MARTEDI
|
|
MERCOLEDI
|
|
SABATO
|
|
VENERDI
|
Method Summary | |
---|---|
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're declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
public static final 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 namepublic 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |