java.lang.Object
i2p.susi.dns.AddressByNameSorter
- All Implemented Interfaces:
Serializable, Comparator<AddressBean>
Comparator for sorting AddressBean by name alphabetically.
- See Also:
Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionintcompare(AddressBean a, AddressBean b) Compare two AddressBeans alphabetically by display name.Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
equals, max, min, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Constructor Details
AddressByNameSorter
public AddressByNameSorter()Creates a name-order comparator.
Method Details
compare
Compare two AddressBeans alphabetically by display name.- Specified by:
comparein interfaceComparator<AddressBean>- Parameters:
a- the first AddressBeanb- the second AddressBean- Returns:
- comparison of display names (case-insensitive)