Class BlameCallbackImpl.BlameLine

  • Enclosing class:
    BlameCallbackImpl

    public static class BlameCallbackImpl.BlameLine
    extends java.lang.Object
    Class represeting one line of the lines, i.e. a blame record
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String author  
      private java.util.Date changed  
      private java.lang.String line  
      private long revision  
    • Constructor Summary

      Constructors 
      Constructor Description
      BlameLine​(long revision, java.lang.String author, java.util.Date changed, java.lang.String line)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAuthor()  
      java.util.Date getChanged()  
      java.lang.String getLine()  
      long getRevision()  
      private void pad​(java.lang.StringBuffer sb, java.lang.String val, int len)
      Left pad the input string to a given length, to simulate printf()- style output.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • revision

        private long revision
      • author

        private java.lang.String author
      • changed

        private java.util.Date changed
      • line

        private java.lang.String line
    • Constructor Detail

      • BlameLine

        public BlameLine​(long revision,
                         java.lang.String author,
                         java.util.Date changed,
                         java.lang.String line)
        Constructor
        Parameters:
        revision -
        author -
        changed -
        line -
    • Method Detail

      • getAuthor

        public java.lang.String getAuthor()
        Returns:
        Returns the author.
      • getChanged

        public java.util.Date getChanged()
        Returns:
        Returns the date changed.
      • getLine

        public java.lang.String getLine()
        Returns:
        Returns the source line content.
      • getRevision

        public long getRevision()
        Returns:
        Returns the revision.
      • toString

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

        private void pad​(java.lang.StringBuffer sb,
                         java.lang.String val,
                         int len)
        Left pad the input string to a given length, to simulate printf()- style output. This method appends the output to the class sb member.
        Parameters:
        sb - StringBuffer to append to
        val - the input string
        len - the minimum length to pad to