org.wdssii.webindex.servlet
Class IndexRecordBean
java.lang.Object
org.wdssii.webindex.servlet.IndexRecordBean
- All Implemented Interfaces:
- Comparable<IndexRecordBean>
public class IndexRecordBean
- extends Object
- implements Comparable<IndexRecordBean>
A single index record in the list returned by WebIndexController
- Version:
- $Id: IndexRecordBean.java,v 1.1 2007/09/20 19:31:29 lakshman Exp $
- Author:
- Lakshman
number
private long number
xml
private String xml
name
private String name
IndexRecordBean
public IndexRecordBean(String name,
String xmldata,
long no)
getNumber
public long getNumber()
getXML
public String getXML()
getName
public String getName()
compareTo
public int compareTo(IndexRecordBean other)
- compare by number (order of creation)
- Specified by:
compareTo
in interface Comparable<IndexRecordBean>
hashCode
public int hashCode()
- The creation number will serve as our hashcode
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object o)
- The equality check is based purely on number
- Overrides:
equals
in class Object