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 SPACES:
return this.spaces;
case BASE_BACKUP_NAME:
return this.base_backup_name;
case CLUSTER_ID:
return this.cluster_id;
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}