Class CmsHistoryList.CmsVersionWrapper

  • All Implemented Interfaces:
    java.lang.Comparable<java.lang.Object>
    Enclosing class:
    CmsHistoryList

    public static class CmsHistoryList.CmsVersionWrapper
    extends java.lang.Object
    implements java.lang.Comparable<java.lang.Object>
    Wrapper class for the version which is either an integer or the string "offline".

    • Constructor Summary

      Constructors 
      Constructor Description
      CmsVersionWrapper​(int version)
      Constructs a new version wrapper.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(java.lang.Object o)  
      boolean equals​(java.lang.Object obj)  
      java.lang.Integer getVersion()
      Returns the version of the file.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • CmsVersionWrapper

        public CmsVersionWrapper​(int version)
        Constructs a new version wrapper.

        Parameters:
        version - the version of the file
    • Method Detail

      • compareTo

        public int compareTo​(java.lang.Object o)
        Specified by:
        compareTo in interface java.lang.Comparable<java.lang.Object>
        See Also:
        Comparable.compareTo(java.lang.Object)
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • getVersion

        public java.lang.Integer getVersion()
        Returns the version of the file.

        Returns:
        the version of the file
      • hashCode

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

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