Class VersionedObjectStore.Version

    • Field Detail

      • id

        public final Long id
        This field is the unique ID of this class. It is the only field that is considered for hashing, comparing and equality checks.
      • timestamp

        public final long timestamp
        This field stores the creation date of this particular version. Do note that two Versions with the same ID but differing timestamps are still treated as equal!
    • Constructor Detail

      • Version

        public Version​(Long id)
    • Method Detail

      • toString

        public String toString​(int truncateDescription)
      • getStability

        public boolean getStability()
      • setStability

        public void setStability​(boolean stable)
      • getDescription

        public String getDescription()
      • setDescription

        public void setDescription​(String description)
      • getLocalTimestamp

        public String getLocalTimestamp()
      • getStabilityString

        public String getStabilityString()
      • getUsername

        public String getUsername()
        Returns the name of the user that created this version.
        Returns:
        a string containing a username. May be empty, but never null.
      • setUsername

        public void setUsername​(String user)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object