i2p.susi.dns

## Class AddressByDateSorter

- java.lang.Object
- - i2p.susi.dns.AddressByDateSorter

- All Implemented Interfaces:
    Serializable, Comparator<AddressBean>

      public class AddressByDateSorter
      extends Object
      implements Comparator<AddressBean>, Serializable

  Comparator for sorting AddressBean by date (newest first, then alphabetical).
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AddressByDateSorter()` Default constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(AddressBean a, AddressBean b)`

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

    - #### AddressByDateSorter

          public AddressByDateSorter()

      Default constructor.

  - ### Method Detail

    - #### compare

          public int compare(AddressBean a,
                             AddressBean b)

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