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 TAG_VERTICES:
return this.tag_vertices;
case EDGES:
return this.edges;
case SPACE_VERTICES:
return this.space_vertices;
case SPACE_EDGES:
return this.space_edges;
case POSITIVE_PART_CORRELATIVITY:
return this.positive_part_correlativity;
case NEGATIVE_PART_CORRELATIVITY:
return this.negative_part_correlativity;
case STATUS:
return this.status;
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}