PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/src/main/java/com/google/ie/dto/SearchResult.java

http://thoughtsite.googlecode.com/
Java | 62 lines | 20 code | 9 blank | 33 comment | 0 complexity | ec4ea8f747e00085d03a482346b5529d MD5 | raw file
 1/* Copyright 2010 Google Inc.
 2 * 
 3 * Licensed under the Apache License, Version 2.0 (the "License");
 4 * you may not use this file except in compliance with the License.
 5 * You may obtain a copy of the License at
 6 * 
 7 *      http://www.apache.org/licenses/LICENSE-2.0
 8 * 
 9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS.
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License
14 */
15
16package com.google.ie.dto;
17
18import java.io.Serializable;
19import java.util.List;
20
21/**
22 * @author gmaurya
23 * 
24 */
25public class SearchResult implements Serializable {
26    /**
27     * 
28     */
29    private static final long serialVersionUID = 6106216651541779349L;
30    private int totalCount;
31    private List<? extends Serializable> data;
32
33    /**
34     * @param data the data to set
35     */
36    public <T extends Serializable> void setData(List<T> data) {
37        this.data = data;
38    }
39
40    /**
41     * @return the data
42     */
43    public List<? extends Serializable> getData() {
44        return data;
45    }
46
47    /**
48     * @param totalCount the totalCount to set
49     */
50    public void setTotalCount(int totalCount) {
51        this.totalCount = totalCount;
52    }
53
54    /**
55     * @return the totalCount
56     */
57    public int getTotalCount() {
58        return totalCount;
59    }
60
61}
62