java - Convert enum of Objective-c to enum of Android -
Anyone can help me please, I want to convert objective-c enum into Android enum like the following:
// Objective-c enum =================================================================================================== // Just print using Android logger: =============== log ("ab =", ab + ""); Logs ("BC =", BC + ""); Logs ("ca =", ca + ""); ================ Result: ab = 0; BC = 1; Ca = 2; Want to convert from above Android enumeration, but want to keep the same results while printing.
It may be
public enum piece type {AB (0), BC (1), CA (2); Private int values; Private currency (int value) {this.value = value; }}; And here is a link for you:
Comments
Post a Comment