org.crosswire.jsword.passage
Class PassageTally.TalliedVerse

java.lang.Object
  extended by org.crosswire.jsword.passage.PassageTally.TalliedVerse
All Implemented Interfaces:
Comparable
Enclosing class:
PassageTally

private static class PassageTally.TalliedVerse
extends Object
implements Comparable

Hack to make this work with J2SE 1.1 as well as J2SE 1.2 This compared 2 Integers


Field Summary
protected  int ord
          The verse id
protected  int tally
          The rank of the verse
 
Constructor Summary
PassageTally.TalliedVerse(int ord, int tally)
          Convenience ctor to set the public variables
 
Method Summary
 int compareTo(Object obj)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ord

protected int ord
The verse id


tally

protected int tally
The rank of the verse

Constructor Detail

PassageTally.TalliedVerse

public PassageTally.TalliedVerse(int ord,
                                 int tally)
Convenience ctor to set the public variables

Parameters:
ord - the verse id
tally - the rank of the verse
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

compareTo

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

Copyright ยจ 2003-2007