MOEA Framework 2.9
API Specification

org.moeaframework.analysis.diagnostics
Class ResultKey

java.lang.Object
  extended by 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:
Serialized Form

Constructor Summary
ResultKey(String algorithm, String problem)
          Constructs a new result key with the specified algorithm and problem.
 
Method Summary
 int compareTo(ResultKey rhs)
           
 boolean equals(Object obj)
           
 String getAlgorithm()
          Returns the algorithm represented by this result key.
 String getProblem()
          Returns the problem represented by this result key.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Detail

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

MOEA Framework 2.9
API Specification

Copyright 2009-2016 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Visit us on Github!