Class BaseCommitData

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BaseCommitData​(java.lang.String version, java.lang.String displayVersion, java.util.Date vcsDate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addParentRevision​(java.lang.String parentRevision)
      Add parent revision for this change
      boolean equals​(java.lang.Object o)  
      protected boolean equalsImpl​(BaseCommitData that)  
      java.util.Map<java.lang.String,​java.lang.String> getAttributes()  
      java.lang.String getDisplayVersion()  
      java.util.List<java.lang.String> getParentRevisions()
      Get parent revisions of this change, returns an empty list if VCS does not provide information about parents.
      java.util.Date getVcsDate()  
      java.lang.String getVersion()  
      int hashCode()  
      void setAttribute​(java.lang.String name, java.lang.String value)  
      void setAttributes​(java.util.Map<java.lang.String,​java.lang.String> attributes)  
      void setParentRevisions​(java.util.Collection<java.lang.String> parentRevisions)
      Set parent revisions for this change
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BaseCommitData

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

      • getVcsDate

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

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

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

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

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

        @NotNull
        public java.util.List<java.lang.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
                                  java.util.Map<java.lang.String,​java.lang.String> attributes)
      • setAttribute

        public void setAttribute​(@NotNull
                                 java.lang.String name,
                                 @NotNull
                                 java.lang.String value)
      • getAttributes

        @NotNull
        public java.util.Map<java.lang.String,​java.lang.String> getAttributes()
        Specified by:
        getAttributes in interface CommitData
        Returns:
        attributes of this change
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • equalsImpl

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

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object