Package net.imglib2

Class KDTree.DimComparator<L extends RealLocalizable>

  • All Implemented Interfaces:
    java.util.Comparator<L>
    Enclosing class:
    KDTree<T>

    public static final class KDTree.DimComparator<L extends RealLocalizable>
    extends java.lang.Object
    implements java.util.Comparator<L>
    Compare RealLocalizables by comparing their coordinates in dimension d.
    • Constructor Summary

      Constructors 
      Constructor Description
      DimComparator​(int d)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(L o1, L o2)  
      • 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 Detail

      • DimComparator

        public DimComparator​(int d)
    • Method Detail

      • compare

        public int compare​(L o1,
                           L o2)
        Specified by:
        compare in interface java.util.Comparator<L extends RealLocalizable>