Interface ChangeNumberVirtualIdAlgorithm

  • All Known Implementing Classes:
    ChangeNumberBitmapMaskAlgorithm

    public interface ChangeNumberVirtualIdAlgorithm
    Algorithm for encoding a serverId/legacyChangeNum into a virtual numeric id

    TODO: To be reverted on master and stable-3.8

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int apply​(String serverId, int legacyChangeNum)
      Convert a serverId/legacyChangeNum tuple into a virtual numeric id
    • Method Detail

      • apply

        int apply​(String serverId,
                  int legacyChangeNum)
        Convert a serverId/legacyChangeNum tuple into a virtual numeric id
        Parameters:
        serverId - Gerrit serverId
        legacyChangeNum - legacy change number
        Returns:
        virtual id which combines serverId and legacyChangeNum together