Package org.openurp.edu.clazz.util
Class GenderRatio
java.lang.Object
org.openurp.edu.clazz.util.GenderRatio
- All Implemented Interfaces:
Serializable,Comparable<GenderRatio>
public class GenderRatio extends Object implements Serializable, Comparable<GenderRatio>
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static GenderRatioemptyshortvalue -
Constructor Summary
Constructors Constructor Description GenderRatio(short value) -
Method Summary
Modifier and Type Method Description intcompareTo(GenderRatio o)booleanequals(Object arg0)inthashCode()booleanisAllFemale()booleanisAllMale()booleanisEmpty()static GenderRatioof(String value)StringtoString()
-
Field Details
-
empty
-
value
public final short value
-
-
Constructor Details
-
GenderRatio
public GenderRatio(short value)
-
-
Method Details
-
isAllMale
public boolean isAllMale() -
isAllFemale
public boolean isAllFemale() -
of
-
isEmpty
public boolean isEmpty() -
compareTo
- Specified by:
compareToin interfaceComparable<GenderRatio>
-
toString
-
equals
-
hashCode
public int hashCode()
-