net.i2p.data.router
Class SortHelper
java.lang.Object
net.i2p.data.router.SortHelper
class SortHelper
- extends Object
The sorting of addresses in RIs
- Since:
- 0.9.16 moved from DataHelper
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortHelper
SortHelper()
sortStructures
public static List<? extends DataStructure> sortStructures(Collection<? extends DataStructure> dataStructures)
- Sort based on the Hash of the DataStructure.
Warning - relatively slow.
WARNING - this sort order must be consistent network-wide, so while the order is arbitrary,
it cannot be changed.
Why? Just because it has to be consistent so signing will work.
How to spec as returning the same type as the param?
DEPRECATED - Only used by RouterInfo.
- Returns:
- a new list
sortStructureList
static void sortStructureList(List<? extends DataStructure> dataStructures)
- See above.
DEPRECATED - Only used by RouterInfo.
- Since:
- 0.9