Package 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
-
Constructor Summary
Constructors Constructor Description SortHelper()
-
Method Summary
Modifier and Type Method Description (package private) static void
sortStructureList(List<? extends DataStructure> dataStructures)
See above.static <T extends DataStructure>
List<T>sortStructures(Collection<T> dataStructures)
Sort based on the Hash of the DataStructure.
-
Constructor Details
-
SortHelper
SortHelper()
-
-
Method Details
-
sortStructures
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. DEPRECATED - Only used by RouterInfo.- Returns:
- a new list
-
sortStructureList
See above. DEPRECATED - Only used by RouterInfo.- Since:
- 0.9
-