public class Field
extends java.lang.Object
Constructor and Description |
---|
Field(java.lang.String key,
java.lang.Object value)
Used to construct the filed.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKey()
Used to get a the key of the field in the table
|
java.lang.Object |
getValue()
Used to get the value of the field
|
void |
setKey(java.lang.String key)
Used to set the key of the field
|
void |
setValue(java.lang.Object value)
USed to set the value of the field
|
java.lang.String |
toString()
Print out the fields key and value
|
public Field(java.lang.String key, java.lang.Object value)
key
- The key of the filedvalue
- The value of the filedpublic java.lang.String getKey()
public void setKey(java.lang.String key)
key
- The key of the fieldpublic java.lang.Object getValue()
public void setValue(java.lang.Object value)
value
- The value of the fieldpublic java.lang.String toString()
toString
in class java.lang.Object