getFieldValue method
Get a field's value by fieldId
. Primitive types will be wrapped in the
appropriate "boxed" types.
Implementation
getFieldValue(int fieldID) {
switch (fieldID) {
case START_TIME:
return this.start_time;
case STATUS:
return this.status;
case DURATION:
return this.duration;
case QUERY:
return this.query;
case GRAPH_ADDR:
return this.graph_addr;
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}