Xindice API
version 1.1

org.apache.xindice.core.filer
Class Paged.PageKey

java.lang.Object
  |
  +--org.apache.xindice.core.filer.Paged.PageKey
All Implemented Interfaces:
Comparable
Direct Known Subclasses:
Paged.Page
Enclosing class:
Paged

protected static class Paged.PageKey
extends Object
implements Comparable

The object wrapping page number.


Field Summary
protected  long pageNum
          This page number
 
Constructor Summary
Paged.PageKey(long pageNum)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object obj)
          Pages are equal if they are the same or have equal pageNum.
 long getPageNum()
           
 int hashCode()
          Return page hash code, which is hash code of its pageNum.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pageNum

protected final long pageNum
This page number
Constructor Detail

Paged.PageKey

public Paged.PageKey(long pageNum)
Method Detail

getPageNum

public long getPageNum()

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

hashCode

public int hashCode()
Return page hash code, which is hash code of its pageNum.
Overrides:
hashCode in class Object
Returns:
Page hash code

equals

public boolean equals(Object obj)
Pages are equal if they are the same or have equal pageNum.
Overrides:
equals in class Object
Parameters:
obj - Another page
Returns:
true if pages are equal

Xindice API
version 1.1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.