Enum Class MetricFileWriter.Metric

java.lang.Object
java.lang.Enum<MetricFileWriter.Metric>
org.moeaframework.analysis.io.MetricFileWriter.Metric
All Implemented Interfaces:
Serializable, Comparable<MetricFileWriter.Metric>, Constable
Enclosing class:
MetricFileWriter

public static enum MetricFileWriter.Metric extends Enum<MetricFileWriter.Metric>
Enumeration of metrics that are written to the metric file. This also specifies the order of the columns.
  • Enum Constant Details

  • Method Details

    • values

      public static MetricFileWriter.Metric[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MetricFileWriter.Metric valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumberOfMetrics

      public static int getNumberOfMetrics()
      Returns the number of metrics written to the metric file.
      Returns:
      the number of metrics
    • fromString

      public static MetricFileWriter.Metric fromString(String value)
      Determine the metric from its string representation using case-insensitive matching.
      Parameters:
      value - the string representation of the metric
      Returns:
      the metric
      Throws:
      IllegalArgumentException - if the metric is not supported