org.openstreetmap.josm.plugins.streetside

## Class StreetsideLayer.NearestImgToTargetComparator

- java.lang.Object
- - org.openstreetmap.josm.plugins.streetside.StreetsideLayer.NearestImgToTargetComparator

- All Implemented Interfaces:
    Comparator<StreetsideAbstractImage>
  Enclosing class:
    StreetsideLayer

      private static class StreetsideLayer.NearestImgToTargetComparator
      extends Object
      implements Comparator<StreetsideAbstractImage>

  Action used to delete images.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `private StreetsideAbstractImage` | `target`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `NearestImgToTargetComparator(StreetsideAbstractImage target)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(StreetsideAbstractImage img1, StreetsideAbstractImage img2)`

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

- - ### Field Detail

    - #### target

          private final StreetsideAbstractImage target

  - ### Constructor Detail

    - #### NearestImgToTargetComparator

          public NearestImgToTargetComparator(StreetsideAbstractImage target)

  - ### Method Detail

    - #### compare

          public int compare(StreetsideAbstractImage img1,
                             StreetsideAbstractImage img2)

      Specified by:
        `compare` in interface `Comparator<StreetsideAbstractImage>`

JOSM Plugins