toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Statistic.sum:
      return 'SUM';
    case Statistic.max:
      return 'MAX';
    case Statistic.avg:
      return 'AVG';
  }
}