Package com.rometools.modules.base.types
Class GenderEnumeration
- java.lang.Object
-
- com.rometools.modules.base.types.GenderEnumeration
-
- All Implemented Interfaces:
CloneableType,Cloneable
public class GenderEnumeration extends Object implements CloneableType
Simple enumeration for Genders.
-
-
Field Summary
Fields Modifier and Type Field Description static GenderEnumerationFEMALEWomenstatic GenderEnumerationMALEMen
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Returns a reference to the same object.static GenderEnumerationfindByValue(String value)Returns the proper instance based on the string valueStringgetValue()Returns the value of the instanceStringtoString()
-
-
-
Field Detail
-
MALE
public static final GenderEnumeration MALE
Men
-
FEMALE
public static final GenderEnumeration FEMALE
Women
-
-
Method Detail
-
findByValue
public static GenderEnumeration findByValue(String value)
Returns the proper instance based on the string value
-
getValue
public String getValue()
Returns the value of the instance
-
clone
public Object clone()
Returns a reference to the same object. :P- Specified by:
clonein interfaceCloneableType- Overrides:
clonein classObject
-
-