| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| Extent |
|
| 1.0;1 |
| 1 | // BSD License (http://www.galagosearch.org/license) | |
| 2 | package org.galagosearch.core.retrieval.structured; | |
| 3 | ||
| 4 | /** | |
| 5 | * | |
| 6 | * @author trevor | |
| 7 | */ | |
| 8 | 2624 | public class Extent { |
| 9 | public double weight; | |
| 10 | public int document; | |
| 11 | public int begin; | |
| 12 | public int end; | |
| 13 | ||
| 14 | public int compareTo(Extent other) { | |
| 15 | 0 | return other.document - document; |
| 16 | } | |
| 17 | ||
| 18 | public boolean contains(Extent other) { | |
| 19 | 0 | return begin <= other.begin && end >= other.end; |
| 20 | } | |
| 21 | } |