Interface RevisionSelector<T>


public interface RevisionSelector<T>
Since:
3.9.0
  • Method Details

    • repository

      @NotNull RevisionSelector<T> repository(@Nullable String repositoryName)
      Selects the Repository.
      Throws:
      IllegalStateException - if this RevisionSelector instance is already in finished state.
    • id

      @NotNull T id(@NotNull String id)
      Selects the Revision.
      Throws:
      IllegalStateException - if this RevisionSelector instance is already in finished state.
    • reference

      @NotNull T reference(@NotNull RevisionReference reference)
      Finishes selecting the Revision, all other values are ignored
    • dateOrBefore

      @NotNull T dateOrBefore(@NotNull Date date)
      Searches first Revision which was created before or exactly at date.
      Returns:
      found Revision or baseline revision if found revision was less then baseline revision.
      Throws:
      IllegalStateException - if repository(String) method called before this method, because there is no implementation for revision search according to specified repositories.
      IllegalStateException - if this RevisionSelector instance is already in finished state.
      Since:
      3.9.3
    • dateOrAfter

      @NotNull T dateOrAfter(@NotNull Date date)
      Searches first Revision which was created after or exactly at date.
      Returns:
      founded Revision or undefined Revision if no revisions were found according to date.
      Throws:
      IllegalStateException - if repository(String) method called before this method, because there is no implementation for revision search according to specified repositories.
      IllegalStateException - if this RevisionSelector instance is already in finished state.
      Since:
      3.9.3