Back to project page spring-for-android-starter-book.
The source code is released under:
Apache License
If you think the Android project spring-for-android-starter-book listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net.dahanne.spring.android.ch3.restful.example.recipeapp; /*from w ww .j a va2 s . c o m*/ public enum DishType { ENTREE, MAIN_DISH, DESSERT; public static DishType fromString(String type) { if (ENTREE.toString().equals(type)) { return ENTREE; } else if (MAIN_DISH.toString().equals(type)) { return MAIN_DISH; } else { return DESSERT; } } }