MinimizationComparator (JEvolution)
Date: 2013-03-21

evSOLve.JEvolution.misc

## Class MinimizationComparator

- java.lang.Object
- - evSOLve.JEvolution.misc.MinimizationComparator

- All Implemented Interfaces:
    java.util.Comparator

      public class MinimizationComparator
      extends java.lang.Object
      implements java.util.Comparator

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MinimizationComparator()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(java.lang.Object a, java.lang.Object b)` Implements a Comparator for the fitness of Individuals, where a fitness value of 0.0 is greater than a fitness of 1.0.

    - ### 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

    - #### MinimizationComparator

          public MinimizationComparator()

  - ### Method Detail

    - #### compare

          public int compare(java.lang.Object a,
                    java.lang.Object b)
                      throws java.lang.ClassCastException

      Implements a Comparator for the fitness of Individuals, where a fitness value of 0.0 is greater than a fitness of 1.0.
      Specified by:
        `compare` in interface `java.util.Comparator`
      Parameters:
        `a` - an Individual
        `b` - another one
      Throws:
        `java.lang.ClassCastException`