Class RevHistory


  • public class RevHistory
    extends java.lang.Object
    Memo class to remember a revision history.

    These can be nested: A revision can come with a history.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.ArrayList<Revision> list  
    • Constructor Summary

      Constructors 
      Constructor Description
      RevHistory()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addRevision​(int revnumber, java.lang.String date, java.lang.String authorinitials, java.lang.String revremark)
      Used to add a revision form complete information created elsewhere
      void addRevision​(java.lang.String revremark)
      Add a revision, credited to the current user
      void addRevision​(java.lang.String authorinitials, java.lang.String revremark)
      Usual form.
      void addRevision​(Revision r)  
      java.util.ArrayList<Revision> getList()  
      int maxNumber()  
      java.lang.String toString()  
      java.lang.String toString​(java.lang.String prefix)  
      • Methods inherited from class java.lang.Object

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

      • addRevision

        public void addRevision​(int revnumber,
                                java.lang.String date,
                                java.lang.String authorinitials,
                                java.lang.String revremark)
        Used to add a revision form complete information created elsewhere
        Parameters:
        revnumber - the revision number
        date - the revision date
        authorinitials - the author's initials
        revremark - the revision
      • addRevision

        public void addRevision​(java.lang.String authorinitials,
                                java.lang.String revremark)
        Usual form. Dated now, with the next number.
        Parameters:
        authorinitials - the author's initials
        revremark - the revision
      • addRevision

        public void addRevision​(java.lang.String revremark)
        Add a revision, credited to the current user
        Parameters:
        revremark - the revision
      • toString

        public java.lang.String toString​(java.lang.String prefix)
      • toString

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