public class KeyValue
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
log
Used for logging.
|
| Constructor and Description |
|---|
KeyValue(java.lang.String key,
int intValue)
Constructs a new KeyValue using an int.
|
KeyValue(java.lang.String key,
java.lang.String strValue)
Constructs a new KeyValue containing a string.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object anObject)
Overriding this...
|
int |
getIntValue()
Gets the int value portion.
|
java.lang.String |
getKey()
Gets the key portion.
|
java.lang.String |
getStringValue()
Gets the string value portion.
|
java.lang.Object |
getValue()
Gets the value, regardless of its type.
|
void |
setKey(java.lang.String key)
Sets the key portion.
|
void |
setValue(int intValue)
Sets the int value portion.
|
void |
setValue(java.lang.String strValue)
Sets the string value portion.
|
java.lang.String |
toString()
Determines what will be displayed in the combo box.
|
public KeyValue(java.lang.String key,
int intValue)
key - The key portion.intValue - The value portion.public KeyValue(java.lang.String key,
java.lang.String strValue)
key - The key portion.strValue - The value portion.@Nullable public java.lang.String getKey()
public void setKey(@Nullable java.lang.String key)
key - The key portion.public int getIntValue()
public void setValue(int intValue)
intValue - The intValue portion.@Nullable public java.lang.String getStringValue()
String.@Nullable public java.lang.Object getValue()
String or an Integer.public void setValue(java.lang.String strValue)
strValue - The strValue portion.@Nullable public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(@Nullable java.lang.Object anObject)
equals in class java.lang.Object