/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. package com.google.ie.dto;
  16. import java.io.Serializable;
  17. import java.util.List;
  18. /**
  19. * @author gmaurya
  20. *
  21. */
  22. public class SearchResult implements Serializable {
  23. /**
  24. *
  25. */
  26. private static final long serialVersionUID = 6106216651541779349L;
  27. private int totalCount;
  28. private List<? extends Serializable> data;
  29. /**
  30. * @param data the data to set
  31. */
  32. public <T extends Serializable> void setData(List<T> data) {
  33. this.data = data;
  34. }
  35. /**
  36. * @return the data
  37. */
  38. public List<? extends Serializable> getData() {
  39. return data;
  40. }
  41. /**
  42. * @param totalCount the totalCount to set
  43. */
  44. public void setTotalCount(int totalCount) {
  45. this.totalCount = totalCount;
  46. }
  47. /**
  48. * @return the totalCount
  49. */
  50. public int getTotalCount() {
  51. return totalCount;
  52. }
  53. }