Package ch.ivyteam.util.date
Enum Weekday
- java.lang.Object
-
- java.lang.Enum<Weekday>
-
- ch.ivyteam.util.date.Weekday
-
- All Implemented Interfaces:
Serializable
,Comparable<Weekday>
public enum Weekday extends Enum<Weekday>
Days of the week- API:
- This is a public API.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Weekday
getCurrentWeekday()
Gets the weekday of the current dayString
getLocalizedName(Locale locale)
String
getName()
String
getShortLocalizedName(Locale locale)
String
getShortName()
-
-
-
Enum Constant Detail
-
SUNDAY
public static final Weekday SUNDAY
Sunday- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
MONDAY
public static final Weekday MONDAY
Monday- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
TUESDAY
public static final Weekday TUESDAY
Tuesday- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
WEDNESDAY
public static final Weekday WEDNESDAY
Wednesday- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
THURSDAY
public static final Weekday THURSDAY
Thursday- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
FRIDAY
public static final Weekday FRIDAY
Friday- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
SATURDAY
public static final Weekday SATURDAY
Saturday- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
-
Method Detail
-
getName
public String getName()
- Returns:
- the English name of this weekday. E.g. Monday
- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
getShortName
public String getShortName()
- Returns:
- the English short name of this weekday. E.g. Mo for Monday
- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
getLocalizedName
public String getLocalizedName(Locale locale)
- Parameters:
locale
- the locale used to localize the name, ifnull
Locale.getDefault()
is used.- Returns:
- the localized name of the weekday
- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
getShortLocalizedName
public String getShortLocalizedName(Locale locale)
- Parameters:
locale
- the locale used to localize the name, ifnull
Locale.getDefault()
is used.- Returns:
- the short localized name of the weekday
- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
getCurrentWeekday
public static Weekday getCurrentWeekday()
Gets the weekday of the current day- Returns:
- the current weekday. Never null.
- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
-