org.wicketstuff.ki.wicket.page.store
Class PageKey

java.lang.Object
  extended by org.wicketstuff.ki.wicket.page.store.PageKey
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PageKey>, org.apache.wicket.IClusterable

public class PageKey
extends java.lang.Object
implements org.apache.wicket.IClusterable, java.lang.Comparable<PageKey>

Unique Key to lookup a corresponding Page from the PageStore.

continues effort started by Richard Wilkinson (to support TerraCotta, but the architecture has been separated into multiple classes, along with other architectural/stylistic changes.

Since:
Feb 13, 2009 8:04:14 PM
Author:
Les Hazlewood
See Also:
Serialized Form

Field Summary
protected static int PRIME
           
 
Constructor Summary
PageKey(int pageId, int version, int ajaxVersion)
           
 
Method Summary
protected  java.lang.Object clone()
           
 int compareTo(PageKey pk)
           
 boolean equals(java.lang.Object o)
           
 int getAjaxVersion()
           
 int getPageId()
           
 int getVersion()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PRIME

protected static final int PRIME
See Also:
Constant Field Values
Constructor Detail

PageKey

public PageKey(int pageId,
               int version,
               int ajaxVersion)
Method Detail

getPageId

public int getPageId()

getVersion

public int getVersion()

getAjaxVersion

public int getAjaxVersion()

clone

protected java.lang.Object clone()
Overrides:
clone in class java.lang.Object

compareTo

public int compareTo(PageKey pk)
Specified by:
compareTo in interface java.lang.Comparable<PageKey>

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

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


Copyright © 2010. All Rights Reserved.