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 |
pageNum
protected final long pageNum
- This page number
Paged.PageKey
public Paged.PageKey(long pageNum)
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
Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.