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 JOB_ID:
return this.job_id;
case TASK_ID:
return this.task_id;
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}