org.wdssii.webindex.servlet
Class IndexRecordBean

java.lang.Object
  extended by 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

Field Summary
private  String name
           
private  long number
           
private  String xml
           
 
Constructor Summary
IndexRecordBean(String name, String xmldata, long no)
           
 
Method Summary
 int compareTo(IndexRecordBean other)
          compare by number (order of creation)
 boolean equals(Object o)
          The equality check is based purely on number
 String getName()
           
 long getNumber()
           
 String getXML()
           
 int hashCode()
          The creation number will serve as our hashcode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

number

private long number

xml

private String xml

name

private String name
Constructor Detail

IndexRecordBean

public IndexRecordBean(String name,
                       String xmldata,
                       long no)
Method Detail

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