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 ROLE:
return this.role;
case HOST:
return this.host;
case CLUSTER_ID:
return this.cluster_id;
case LEADER_PARTIDS:
return this.leader_partIds;
case GIT_INFO_SHA:
return this.git_info_sha;
case DISK_PARTS:
return this.disk_parts;
case DIR:
return this.dir;
case VERSION:
return this.version;
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}