Class ResultKey

java.lang.Object
org.moeaframework.analysis.diagnostics.ResultKey
All Implemented Interfaces:
Serializable, Comparable<ResultKey>

public class ResultKey extends Object implements Comparable<ResultKey>, Serializable
The key for a result entry, allowing distinct algorithm and problem pairings in sets and maps.
See Also:
  • Constructor Details

    • ResultKey

      public ResultKey(String algorithm, String problem)
      Constructs a new result key with the specified algorithm and problem.
      Parameters:
      algorithm - the algorithm represented by this result key
      problem - the problem represented by this result key
  • Method Details

    • getAlgorithm

      public String getAlgorithm()
      Returns the algorithm represented by this result key.
      Returns:
      the algorithm represented by this result key
    • getProblem

      public String getProblem()
      Returns the problem represented by this result key.
      Returns:
      the problem represented by this result key.
    • compareTo

      public int compareTo(ResultKey rhs)
      Specified by:
      compareTo in interface Comparable<ResultKey>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object