Back to project page Netball.
The source code is released under:
GNU General Public License
If you think the Android project Netball 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 com.prisch.model; /* w w w . j a va 2 s .c om*/ public enum OpponentAction { GOAL ("Goals"); private final String description; private OpponentAction(String description) { this.description = description; } public String getDescription() { return description; } public static OpponentAction fromString(String string) { for (OpponentAction action : values()) { if (action.toString().equals(string)) { return action; } } return null; } }