moea.commons.comparator
Class ComparatorObjective

java.lang.Object
  extended by moea.commons.comparator.ComparatorObjective
All Implemented Interfaces:
java.util.Comparator<Entity>

public class ComparatorObjective
extends java.lang.Object
implements java.util.Comparator<Entity>


Field Summary
protected static ComparatorObjective comparator
           
protected static int m
           
 
Constructor Summary
ComparatorObjective()
           
 
Method Summary
 int compare(Entity left, Entity right)
           
static ComparatorObjective getInstance(int m)
           
 
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
 

Field Detail

m

protected static int m

comparator

protected static ComparatorObjective comparator
Constructor Detail

ComparatorObjective

public ComparatorObjective()
Method Detail

getInstance

public static ComparatorObjective getInstance(int m)

compare

public int compare(Entity left,
                   Entity right)
Specified by:
compare in interface java.util.Comparator<Entity>