Class AlwaysEqualComparator<T>

java.lang.Object
org.jgrapht.alg.util.AlwaysEqualComparator<T>
Type Parameters:
T - type of elements to be compared
All Implemented Interfaces:
java.util.Comparator<T>

@Deprecated(forRemoval=true,
            since="1.5.1")
public class AlwaysEqualComparator<T>
extends java.lang.Object
implements java.util.Comparator<T>
Deprecated, for removal: This API element is subject to removal in a future version.
use a lambda like (t1,t2) -> 0 instead
A default implementation for a check on equality (that always holds)
  • Constructor Summary

    Constructors 
    Constructor Description
    AlwaysEqualComparator()
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type Method Description
    int compare​(T arg0, T arg1)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
  • Constructor Details

    • AlwaysEqualComparator

      public AlwaysEqualComparator()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • compare

      public int compare​(T arg0, T arg1)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      compare in interface java.util.Comparator<T>