org.opencms.workplace.commons
Class CmsHistoryList.CmsVersionWrapper

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

public static class CmsHistoryList.CmsVersionWrapper
extends Object
implements Comparable

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


Constructor Summary
CmsHistoryList.CmsVersionWrapper(Object version)
          Constructs a new version wrapper.
 
Method Summary
 int compareTo(Object o)
           
 Object getVersion()
          Returns the version of the file.
 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(Object version)
Constructs a new version wrapper.

Parameters:
version - the version of the file
Method Detail

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable
See Also:
Comparable.compareTo(java.lang.Object)

getVersion

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

Returns:
the version of the file

toString

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