Back to project page Alkomer.
The source code is released under:
MIT License
If you think the Android project Alkomer 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 cz.jmx.tomik.alkomer.android.models; /*from w w w . j a v a2s. c o m*/ /** * Alkomer - Server App * -------------------- * Gender Enum * * @copyright Copyright (c) 2011 Tomas Vitek * @author Tomas Vitek ~ http://tomik.jmx.cz * @package Alkomer * @version 1.0 */ public enum Gender { male, female; public double getBetaConstant() { switch (this) { case male: return 0.1f; case female: return 0.085f; } return 1; } public double getWaterInBodyConstant() { switch (this) { case male: return 0.76f; case female: return 0.6f; } return 1; } @Override public String toString() { switch (this) { case male: return "male"; case female: return "female"; } return null; } }