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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(GenderRatio o)booleanequals(Object arg0)inthashCode()booleanisAllFemale()booleanisAllMale()booleanisEmpty()static GenderRatioof(String value)StringtoString()
-
-
-
Field Detail
-
empty
public static final GenderRatio empty
-
value
public final short value
-
-
Method Detail
-
isAllMale
public boolean isAllMale()
-
isAllFemale
public boolean isAllFemale()
-
of
public static GenderRatio of(String value)
-
isEmpty
public boolean isEmpty()
-
compareTo
public int compareTo(GenderRatio o)
- Specified by:
compareToin interfaceComparable<GenderRatio>
-
-