MOEA Framework 2.11
API Specification

org.moeaframework.core.comparator
Class LexicographicalComparator

java.lang.Object
  extended by org.moeaframework.core.comparator.LexicographicalComparator
All Implemented Interfaces:
Serializable, Comparator<Solution>

public class LexicographicalComparator
extends Object
implements Comparator<Solution>, Serializable

Compares solutions lexicographically.

See Also:
Serialized Form

Constructor Summary
LexicographicalComparator()
          Constructs a comparator for comparing solutions lexicographically.
 
Method Summary
 int compare(Solution a, Solution b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

LexicographicalComparator

public LexicographicalComparator()
Constructs a comparator for comparing solutions lexicographically.

Method Detail

compare

public int compare(Solution a,
                   Solution b)
Specified by:
compare in interface Comparator<Solution>

MOEA Framework 2.11
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!