public class G9Enumerator extends Object implements Serializable, Comparable<G9Enumerator>
| Modifier and Type | Field and Description |
|---|---|
int |
currentValue
The current enumerator value
|
| Constructor and Description |
|---|
G9Enumerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
assignFromName(String n)
Assign the current value based on the supplied parameter
|
int |
compareTo(G9Enumerator genum) |
String |
currentAsName()
Deprecated.
This method is likely to fail...
|
boolean |
equals(Object o) |
int |
getCurrentValue()
Gets the current enumerator value
|
Integer |
getCurrentValueAsInteger()
Gets the current value as an Integer
|
int |
hashCode() |
int |
keyFromName(String f)
Gets the key from the specified name
|
String |
nameFromKey(int n)
Deprecated.
This method may return incorrect value.
|
void |
setCurrentValue(int n)
Sets the current enumeration value
|
public int getCurrentValue()
public Integer getCurrentValueAsInteger()
public void setCurrentValue(int n)
n - the current enumeration value@Deprecated public String currentAsName()
public void assignFromName(String n)
n - the name of the enumerator valuepublic int keyFromName(String f)
f - the name@Deprecated public String nameFromKey(int n)
n - the keypublic int compareTo(G9Enumerator genum)
compareTo in interface Comparable<G9Enumerator>Copyright © 2006–2017 Esito AS. All rights reserved.