Details
-
Type: Improvement
-
Status: Closed (View Workflow)
-
Priority: Trivial
-
Resolution: Fixed
-
Affects Version/s: 1.6
-
Fix Version/s: 1.6.1
-
Component/s: o.c.jsword.passage
-
Labels:None
Description
Hi,
I would like to request Public API for VerseRange to get Old Testament
and New Testament as public static methods for easy usage.
Currently, the VerseRange only have public API for
getWholeBibleVerseRange(). It does not have OT and NT.
This is the patch (very trivial)
org.crosswire.jsword.passage.VerseRange
public static VerseRange getOldTestamentVerseRange()
{ return otRange; }public static VerseRange getNewTestamentVerseRange()
{ return ntRange; }/**
- The Old Testatment VerseRange
*/
private static transient VerseRange otRange;
staticUnknown macro: { try { otRange = new VerseRange(new Verse(1, 1, 1), new Verse(39, 4, 6)); } catch (NoSuchVerseException ex) { assert false : ex; otRange = new VerseRange(); } }
/**
- The New Testament VerseRange
*/
private static transient VerseRange ntRange;
staticUnknown macro: { try { ntRange = new VerseRange(new Verse(40, 1, 1), new Verse(66, 22, 21)); } catch (NoSuchVerseException ex) { assert false : ex; ntRange = new VerseRange(); } }
Cheers
Tonny Kohar