java.lang.Object
net.i2p.router.web.helpers.NetDbComparators.RAComparator
- All Implemented Interfaces:
Serializable, Comparator<RouterAddress>
- Enclosing class:
NetDbComparators
static class NetDbComparators.RAComparatorextends Object implements Comparator<RouterAddress>, Serializable
Comparator for router addresses by transport then host.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longPinned for serialized-form compatibility.Constructor Summary
ConstructorsConstructorDescriptionA stateless comparator, so a bare instance is enough:compare(RouterAddress, RouterAddress)reads nothing but the two addresses it is handed.Method Summary
All MethodsMethods 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
Field Details
serialVersionUID
private static final long serialVersionUIDPinned for serialized-form compatibility.- See Also:
Constructor Details
RAComparator
RAComparator()A stateless comparator, so a bare instance is enough:compare(RouterAddress, RouterAddress)reads nothing but the two addresses it is handed.
Method Details
compare
- Specified by:
comparein interfaceComparator<RouterAddress>