package org.opencb.biodata.tools.variant.stats;

import org.opencb.biodata.models.variant.metadata.Aggregation;

/**
 * Created on 16/08/17.
 *
 * @author Jacobo Coll &lt;jacobo167@gmail.com&gt;
 */
public class AggregationUtils {

    public static boolean isAggregated(Aggregation aggregation) {
        return !Aggregation.NONE.equals(aggregation);
    }

}

@@ -42,16 +42,60 @@
 stats;%0A%0A
+import org.apache.commons.lang.StringUtils;%0A
 import o
@@ -396,10 +396,194 @@
 %0A    %7D%0A%0A
+    public static Aggregation valueOf(String aggregation) %7B%0A        return StringUtils.isEmpty(aggregation) ? Aggregation.NONE : Aggregation.valueOf(aggregation.toUpperCase());%0A    %7D%0A%0A
 %7D%0A

Add valueOf method to AggregationUtils.