org.opencms.workplace.commons
Class CmsHistoryList.CmsVersionWrapper

java.lang.Object
  extended byorg.opencms.workplace.commons.CmsHistoryList.CmsVersionWrapper
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
CmsHistoryList

public static class CmsHistoryList.CmsVersionWrapper
extends java.lang.Object
implements java.lang.Comparable

Wrapper class for the version which is either an integer or the string "offline".


Constructor Summary
CmsHistoryList.CmsVersionWrapper(int version)
          Constructs a new version wrapper.
 
Method Summary
 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

CmsHistoryList.CmsVersionWrapper

public CmsHistoryList.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
See Also:
Comparable.compareTo(java.lang.Object)

equals

public boolean equals(java.lang.Object obj)
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()
See Also:
Object.hashCode()

toString

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