Interface BuildNumberService

All Known Implementing Classes:
BuildNumberServiceImpl

public interface BuildNumberService
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getNextBuildNumber(@NotNull PlanIdentifier planIdentifier)
    Returns next build number for a plan with the given key without bumping it.
    boolean
    setBuildNumber(@NotNull PlanIdentifier planIdentifier, int newBuildNumber)
    Sets new build number for a plan with the given key.
  • Method Details

    • setBuildNumber

      boolean setBuildNumber(@NotNull @NotNull PlanIdentifier planIdentifier, int newBuildNumber)
      Sets new build number for a plan with the given key. newBuildNumber must be greater than the current one.
      Parameters:
      planIdentifier - Identifier of a plan
      newBuildNumber - must be greater than actual build number
      Returns:
      true if newBuildNumber is greater than the old one. Otherwise false.
    • getNextBuildNumber

      int getNextBuildNumber(@NotNull @NotNull PlanIdentifier planIdentifier)
      Returns next build number for a plan with the given key without bumping it.
      Parameters:
      planIdentifier -
      Returns: