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 HOSTADDR:
return this.hostAddr;
case STATUS:
return this.status;
case LEADER_PARTS:
return this.leader_parts;
case ALL_PARTS:
return this.all_parts;
case ROLE:
return this.role;
case GIT_INFO_SHA:
return this.git_info_sha;
case ZONE_NAME:
return this.zone_name;
case VERSION:
return this.version;
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}