Class BaseCommitData

    • Constructor Detail

      • BaseCommitData

        protected BaseCommitData​(@NotNull
                                 String version,
                                 @Nullable
                                 String displayVersion,
                                 @NotNull
                                 Date vcsDate)
    • Method Detail

      • getVcsDate

        @NotNull
        public Date getVcsDate()
        Specified by:
        getVcsDate in interface CommitData
        Returns:
        VCS change date
      • getVersion

        @NotNull
        public String getVersion()
        Specified by:
        getVersion in interface CommitData
        Returns:
        VCS revision (internal representation)
      • getDisplayVersion

        @NotNull
        public String getDisplayVersion()
        Specified by:
        getDisplayVersion in interface CommitData
        Returns:
        VCS revision (displayable representation)
      • addParentRevision

        public void addParentRevision​(@NotNull
                                      String parentRevision)
        Add parent revision for this change
        Parameters:
        parentRevision - parent revision
        Since:
        7.0
      • setParentRevisions

        public void setParentRevisions​(@NotNull
                                       Collection<String> parentRevisions)
        Set parent revisions for this change
        Parameters:
        parentRevisions - parent revisions
        Since:
        7.0
      • getParentRevisions

        @NotNull
        public List<String> getParentRevisions()
        Get parent revisions of this change, returns an empty list if VCS does not provide information about parents.
        Specified by:
        getParentRevisions in interface CommitData
        Returns:
        see above
        Since:
        7.0
      • setAttributes

        public void setAttributes​(@NotNull
                                  Map<String,​String> attributes)
      • setAttribute

        public void setAttribute​(@NotNull
                                 String name,
                                 @NotNull
                                 String value)
      • equalsImpl

        protected boolean equalsImpl​(@NotNull
                                     BaseCommitData that)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object