Class SortHelper


  • class SortHelper
    extends Object
    The sorting of addresses in RIs
    Since:
    0.9.16 moved from DataHelper
    • Constructor Detail

      • SortHelper

        SortHelper()
    • Method Detail

      • sortStructures

        public static <T extends DataStructureList<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