Package com.sun.jna.platform.mac
Enum CoreFoundation.CFDateFormatterStyle
- java.lang.Object
-
- java.lang.Enum<CoreFoundation.CFDateFormatterStyle>
-
- com.sun.jna.platform.mac.CoreFoundation.CFDateFormatterStyle
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CoreFoundation.CFDateFormatterStyle>
- Enclosing interface:
- CoreFoundation
public static enum CoreFoundation.CFDateFormatterStyle extends java.lang.Enum<CoreFoundation.CFDateFormatterStyle>
Enum of values used forCoreFoundation.CFDateFormatterStyleinCoreFoundation.CFDateFormatterCreate(com.sun.jna.platform.mac.CoreFoundation.CFAllocatorRef, com.sun.jna.platform.mac.CoreFoundation.CFLocale, com.sun.jna.platform.mac.CoreFoundation.CFIndex, com.sun.jna.platform.mac.CoreFoundation.CFIndex). Useindex()for the expected integer value corresponding to the C-style enum.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description kCFDateFormatterFullStylekCFDateFormatterLongStylekCFDateFormatterMediumStylekCFDateFormatterNoStylekCFDateFormatterShortStyle
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CoreFoundation.CFIndexindex()Style for the type ofCoreFoundation.CFDateFormatterStylestored.static CoreFoundation.CFDateFormatterStylevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CoreFoundation.CFDateFormatterStyle[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
kCFDateFormatterNoStyle
public static final CoreFoundation.CFDateFormatterStyle kCFDateFormatterNoStyle
-
kCFDateFormatterShortStyle
public static final CoreFoundation.CFDateFormatterStyle kCFDateFormatterShortStyle
-
kCFDateFormatterMediumStyle
public static final CoreFoundation.CFDateFormatterStyle kCFDateFormatterMediumStyle
-
kCFDateFormatterLongStyle
public static final CoreFoundation.CFDateFormatterStyle kCFDateFormatterLongStyle
-
kCFDateFormatterFullStyle
public static final CoreFoundation.CFDateFormatterStyle kCFDateFormatterFullStyle
-
-
Method Detail
-
values
public static CoreFoundation.CFDateFormatterStyle[] 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 (CoreFoundation.CFDateFormatterStyle c : CoreFoundation.CFDateFormatterStyle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CoreFoundation.CFDateFormatterStyle 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
-
index
public CoreFoundation.CFIndex index()
Style for the type ofCoreFoundation.CFDateFormatterStylestored.- Returns:
- a
CoreFoundation.CFIndexrepresenting the enum ordinal.
-
-