View Javadoc

1   // BSD License (http://www.galagosearch.org/license)
2   package org.galagosearch.core.retrieval.structured;
3   
4   /***
5    *
6    * @author trevor
7    */
8   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          return other.document - document;
16      }
17  
18      public boolean contains(Extent other) {
19          return begin <= other.begin && end >= other.end;
20      }
21  }