What is the correct way to cast an Int to an enum in Java given the following enum? public enum MyEnum
开发者_JS百科I\'ve downloaded .net sample FindPrivateKey, compiled for framework 4.0, tried for different platforms (32bit, 64bit, Any CPU) but it didn\'t work. Always the same error: the ordinal 345
So for example lets say when I string.format a date and use the string \"or\" in format pattern I want that converted to the ordinal value of the 开发者_JAVA技巧Date.
I have the following code in my program: NSUInteger currentMinuteOrdinal = [[NSCalendar currentCalendar] ordinalityOfUnit:NSMinuteCalendarUnit inUnit:NSEraCalendarUnit forDate:[NSDate date]];