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(java.lang.Object version)
          Constructs a new version wrapper.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 java.lang.Object getVersion()
          Returns the version of the file.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CmsHistoryList.CmsVersionWrapper

public CmsHistoryList.CmsVersionWrapper(java.lang.Object 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)

getVersion

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

Returns:
the version of the file

toString

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