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