org.jquantlib.time
Enum Weekday
- java.lang.Object
-
- java.lang.Enum<Weekday>
-
- org.jquantlib.time.Weekday
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description FridayMondaySaturdaySundayThursdayTuesdayWednesday
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetLongFormat()Returns the name of weekdays in long formatjava.lang.StringgetShortestFormat()Returns the name of weekdays in shortest format.java.lang.StringgetShortFormat()Returns the name of weekdays in short format (3 letters)java.lang.StringtoString()Returns the name of weekdays in long formatintvalue()Returns the week day as a number where Sunday (1) till Saturday (7)static WeekdayvalueOf(int value)Returns a new Weekday object given its cardinalitystatic WeekdayvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Weekday[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Sunday
public static final Weekday Sunday
-
Monday
public static final Weekday Monday
-
Tuesday
public static final Weekday Tuesday
-
Wednesday
public static final Weekday Wednesday
-
Thursday
public static final Weekday Thursday
-
Friday
public static final Weekday Friday
-
Saturday
public static final Weekday Saturday
-
-
Method Detail
-
values
public static Weekday[] 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 (Weekday c : Weekday.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Weekday 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 namejava.lang.NullPointerException- if the argument is null
-
valueOf
public static Weekday valueOf(int value)
Returns a new Weekday object given its cardinality- Parameters:
value- is the cardinality from 1 (Sunday) till 7 (Saturday)- Returns:
- a new Weekday object given its cardinality
-
value
public int value()
Returns the week day as a number where Sunday (1) till Saturday (7)- Returns:
- the week day as a number where Sunday (1) till Saturday (7)
-
toString
public java.lang.String toString()
Returns the name of weekdays in long format- Overrides:
toStringin classjava.lang.Enum<Weekday>- Returns:
- the name of weekdays in long format
- See Also:
getLongFormat()
-
getLongFormat
public java.lang.String getLongFormat()
Returns the name of weekdays in long format- Returns:
- the name of weekdays in long format
- See Also:
toString()
-
getShortFormat
public java.lang.String getShortFormat()
Returns the name of weekdays in short format (3 letters)- Returns:
- the name of weekdays in short format (3 letters)
-
getShortestFormat
public java.lang.String getShortestFormat()
Returns the name of weekdays in shortest format. (2 letters)- Returns:
- the name of weekdays in shortest format (2 letters)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG