org.cpsolver.ifs.extension

## Class AssignedValue.AssignmentComparator<E extends Value<?,E>>

- java.lang.Object
- - org.cpsolver.ifs.extension.AssignedValue.AssignmentComparator<E>

- Type Parameters:
    `E` - a value
  All Implemented Interfaces:
    Comparator<AssignedValue<E>>
  Enclosing class:
    AssignedValue<T extends Value<?,T>>

      public static class AssignedValue.AssignmentComparator<E extends Value<?,E>>
      extends Object
      implements Comparator<AssignedValue<E>>

  Assignment comparator

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AssignmentComparator(long iteration)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(AssignedValue<E> a1, AssignedValue<E> a2)`

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

      `comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong`

- - ### Constructor Detail

    - #### AssignmentComparator

          public AssignmentComparator(long iteration)

  - ### Method Detail

    - #### compare

          public int compare(AssignedValue<E> a1,
                             AssignedValue<E> a2)

      Specified by:
        `compare` in interface `Comparator<AssignedValue<E extends Value<?,E>>>`