Package oshi.jna.platform.mac
Enum CoreFoundation.CFDateFormatterStyle
java.lang.Object
java.lang.Enum<CoreFoundation.CFDateFormatterStyle>
oshi.jna.platform.mac.CoreFoundation.CFDateFormatterStyle
- All Implemented Interfaces:
Serializable
,Comparable<CoreFoundation.CFDateFormatterStyle>
- Enclosing interface:
CoreFoundation
public static enum CoreFoundation.CFDateFormatterStyle
extends Enum<CoreFoundation.CFDateFormatterStyle>
Enum of values used for
CoreFoundation.CFDateFormatterStyle
in CoreFoundation.CFDateFormatterCreate(com.sun.jna.platform.mac.CoreFoundation.CFAllocatorRef, oshi.jna.platform.mac.CoreFoundation.CFLocale, com.sun.jna.platform.mac.CoreFoundation.CFIndex, com.sun.jna.platform.mac.CoreFoundation.CFIndex)
. Use
index()
for the expected integer value corresponding to the C-style enum.-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptioncom.sun.jna.platform.mac.CoreFoundation.CFIndex
index()
Style for the type ofCoreFoundation.CFDateFormatterStyle
stored.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 Details
-
kCFDateFormatterNoStyle
-
kCFDateFormatterShortStyle
-
kCFDateFormatterMediumStyle
-
kCFDateFormatterLongStyle
-
kCFDateFormatterFullStyle
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
index
public com.sun.jna.platform.mac.CoreFoundation.CFIndex index()Style for the type ofCoreFoundation.CFDateFormatterStyle
stored.- Returns:
- a
CoreFoundation.CFIndex
representing the enum ordinal.
-