Package org.klomp.snark.dht
Class NodeInfoComparator
java.lang.Object
org.klomp.snark.dht.NodeInfoComparator
- All Implemented Interfaces:
Serializable
,Comparator<NodeInfo>
Closest to a InfoHash or NID key.
Use for NodeInfos.
- Since:
- 0.9.2
- Author:
- zzz
-
Constructor Summary
-
Method Summary
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
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
NodeInfoComparator
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<NodeInfo>
-