Class Version

  • All Implemented Interfaces:

    public class Version
    extends java.lang.Object
    Version provides immutable information about a specific version of an item.
    See Also:
    Serialized Form
    • Field Summary

      Modifier and Type Field Description
      static long serialVersionUID  
    • Constructor Summary

      Constructor Description
      Version​(int version, long createTime, java.lang.String user, java.lang.String comment)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getComment()
      Returns version comment.
      long getCreateTime()
      Returns time at which version was created.
      java.lang.String getUser()
      Returns name of user who created version.
      int getVersion()
      Returns version number.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Version

        public Version​(int version,
                       long createTime,
                       java.lang.String user,
                       java.lang.String comment)
        version - file version number
        createTime - time version was created
        user - name of user who created version
        comment - version comment
    • Method Detail

      • getVersion

        public int getVersion()
        Returns version number.
      • getCreateTime

        public long getCreateTime()
        Returns time at which version was created.
      • getComment

        public java.lang.String getComment()
        Returns version comment.
      • getUser

        public java.lang.String getUser()
        Returns name of user who created version.