comparison software/mpdl-services/mpiwg-mpdl-cms/src/de/mpg/mpiwg/berlin/mpdl/cms/document/Hits.java @ 23:e845310098ba

diverse Korrekturen
author Josef Willenborg <jwillenborg@mpiwg-berlin.mpg.de>
date Tue, 27 Nov 2012 12:35:19 +0100
parents
children
comparison
equal deleted inserted replaced
22:6a45a982c333 23:e845310098ba
1 package de.mpg.mpiwg.berlin.mpdl.cms.document;
2
3 import java.util.ArrayList;
4
5 import org.apache.lucene.search.Query;
6
7 public class Hits {
8 private ArrayList<Document> hits;
9 private Query query;
10 private int from;
11 private int to;
12 private int size = 0;
13
14 public Hits(ArrayList<Document> hits, int from, int to) {
15 this.hits = hits;
16 this.from = from;
17 this.to = to;
18 }
19
20 public int getSize() {
21 return size;
22 }
23
24 public void setSize(int size) {
25 this.size = size;
26 }
27
28 public Query getQuery() {
29 return query;
30 }
31
32 public void setQuery(Query query) {
33 this.query = query;
34 }
35
36 public ArrayList<Document> getHits() {
37 return hits;
38 }
39
40 public void setHits(ArrayList<Document> hits) {
41 this.hits = hits;
42 }
43
44 public int getFrom() {
45 return from;
46 }
47
48 public void setFrom(int from) {
49 this.from = from;
50 }
51
52 public int getTo() {
53 return to;
54 }
55
56 public void setTo(int to) {
57 this.to = to;
58 }
59
60 }