org.crosswire.jsword.passage
Class PassageTally.TalliedVerse
java.lang.Object
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 |
ord
protected int ord
- The verse id
tally
protected int tally
- The rank of the verse
PassageTally.TalliedVerse
public PassageTally.TalliedVerse(int ord,
int tally)
- Convenience ctor to set the public variables
- Parameters:
ord
- the verse idtally
- the rank of the verse
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