Clover Coverage Report
Coverage timestamp: Fri May 9 2008 10:54:27 EST
../../../../img/srcFileCovDistChart5.png 77% of files have more coverage
20   66   12   2.5
8   38   0.6   8
8     1.5  
1    
 
  TermVectorOffsetInfo       Line # 19 20 12 50% 0.5
 
  (13)
 
1    package org.apache.lucene.index;
2   
3    /**
4    * Copyright 2004 The Apache Software Foundation
5    *
6    * Licensed under the Apache License, Version 2.0 (the "License");
7    * you may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    *
10    * http://www.apache.org/licenses/LICENSE-2.0
11    *
12    * Unless required by applicable law or agreed to in writing, software
13    * distributed under the License is distributed on an "AS IS" BASIS,
14    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15    * See the License for the specific language governing permissions and
16    * limitations under the License.
17    */
18   
 
19    public class TermVectorOffsetInfo {
20    public static final TermVectorOffsetInfo [] EMPTY_OFFSET_INFO = new TermVectorOffsetInfo[0];
21    private int startOffset;
22    private int endOffset;
23   
 
24  0 toggle public TermVectorOffsetInfo() {
25    }
26   
 
27  24473 toggle public TermVectorOffsetInfo(int startOffset, int endOffset) {
28  24473 this.endOffset = endOffset;
29  24473 this.startOffset = startOffset;
30    }
31   
 
32  48800 toggle public int getEndOffset() {
33  48800 return endOffset;
34    }
35   
 
36  0 toggle public void setEndOffset(int endOffset) {
37  0 this.endOffset = endOffset;
38    }
39   
 
40  48800 toggle public int getStartOffset() {
41  48800 return startOffset;
42    }
43   
 
44  0 toggle public void setStartOffset(int startOffset) {
45  0 this.startOffset = startOffset;
46    }
47   
 
48  24 toggle public boolean equals(Object o) {
49  0 if (this == o) return true;
50  0 if (!(o instanceof TermVectorOffsetInfo)) return false;
51   
52  24 final TermVectorOffsetInfo termVectorOffsetInfo = (TermVectorOffsetInfo) o;
53   
54  0 if (endOffset != termVectorOffsetInfo.endOffset) return false;
55  0 if (startOffset != termVectorOffsetInfo.startOffset) return false;
56   
57  24 return true;
58    }
59   
 
60  0 toggle public int hashCode() {
61  0 int result;
62  0 result = startOffset;
63  0 result = 29 * result + endOffset;
64  0 return result;
65    }
66    }