Class PreviousVersionHashService

java.lang.Object
com.atlassian.jira.health.PreviousVersionHashService

@ParametersAreNonnullByDefault public class PreviousVersionHashService extends Object
Provides the 'baseline' (i.e. unmodified) hashes of files in the version we are upgrading *from*
  • Constructor Details

  • Method Details

    • getInstance

      public static PreviousVersionHashService getInstance()
    • withHashProvider

      public <T> T withHashProvider(Function<PreviousVersionHashService.HashProvider,T> f)
      Carry out some operations with access to the baseline hashes. This allows the hashes to be loaded and then used in a scope without keeping them in memory after they are no longer needed.
      Parameters:
      f - the function to perform
      Returns:
      the value producd by the function