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 Details

    • SortHelper

      SortHelper()
  • Method Details

    • sortStructures

      public static <T extends DataStructure> List<T> sortStructures(Collection<T> 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. 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