public enum Status {So if you had a String and wanted to match the enum it is as easy as
INBOX { public String toString() {"Inbox"}},
NEXT { public String toString() {"Next Action"}},
SOMEDAY { public String toString() {"Someday"}} }
def a = "Inbox" as Status
No comments:
Post a Comment