All Packages Class Hierarchy This Package Previous Next Index
Interface key.Enum
- public interface Enum
-
availableValues()
- For a gender, for instance, returns male, female, and neuter
-
setValue(String)
- Sets the value to a specific one.
-
toString()
- Should return the value of this
availableValues
public abstract String[] availableValues()
- For a gender, for instance, returns male, female, and neuter
setValue
public abstract void setValue(String v)
- Sets the value to a specific one. eg, gender should
accept male, female, or neuter.
toString
public abstract String toString()
- Should return the value of this
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index