Package org.ojalgo.type.format
Enum DateStyle
- java.lang.Object
-
- java.lang.Enum<DateStyle>
-
- org.ojalgo.type.format.DateStyle
-
-
Field Summary
Fields Modifier and Type Field Description private int
myIntValue
-
Constructor Summary
Constructors Modifier Constructor Description private
DateStyle(int aStyleValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.text.Format
getFormat()
java.text.Format
getFormat(java.util.Locale aLocale)
java.text.Format
getFormat(DatePart aPart)
java.text.Format
getFormat(DatePart aPart, java.util.Locale aLocale)
int
intValue()
static DateStyle
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DateStyle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static DateStyle[] 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 (DateStyle c : DateStyle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateStyle 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
-
getFormat
public java.text.Format getFormat()
-
getFormat
public java.text.Format getFormat(DatePart aPart)
-
getFormat
public java.text.Format getFormat(DatePart aPart, java.util.Locale aLocale)
-
getFormat
public java.text.Format getFormat(java.util.Locale aLocale)
-
intValue
public int intValue()
- Returns:
- DateFormat.FULL, DateFormat.LONG, DateFormat.MEDIUM or DateFormat.SHORT
-
-