net.i2p.router.peermanager

## Class SpeedComparator

- java.lang.Object
- - net.i2p.router.peermanager.SpeedComparator

- All Implemented Interfaces:
    Serializable, Comparator<PeerProfile>

      class SpeedComparator
      extends Object
      implements Comparator<PeerProfile>, Serializable

  Order profiles by their speed (lowest first).

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SpeedComparator()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(PeerProfile left, PeerProfile right)`

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

    - #### SpeedComparator

          SpeedComparator()

  - ### Method Detail

    - #### compare

          public int compare(PeerProfile left,
                             PeerProfile right)

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