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 SPACE_BACKUPS:
return this.space_backups;
case META_FILES:
return this.meta_files;
case BACKUP_NAME:
return this.backup_name;
case FULL:
return this.full;
case ALL_SPACES:
return this.all_spaces;
case CREATE_TIME:
return this.create_time;
case BASE_BACKUP_NAME:
return this.base_backup_name;
case STORAGE_HOSTS:
return this.storage_hosts;
case CLUSTER_ID:
return this.cluster_id;
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}