ResultWrapper
[cdmlib.git] / cdmlib-commons / src / main / java / eu / etaxonomy / cdm / common / DoubleResult.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
8 */
9
10 package eu.etaxonomy.cdm.common;
11
12 import org.apache.log4j.Logger;
13
14 /**
15 * An instance of this class represents an method result that contains 2 variables. The variables may be typified.
16 * @author a.mueller
17 * @created 30.10.2008
18 * @version 1.0
19 */
20 public class DoubleResult<S extends Object, T extends Object> {
21 private static final Logger logger = Logger.getLogger(DoubleResult.class);
22
23 private S firstResult = null;
24 private T secondResult = null;
25
26 public DoubleResult() {
27 super();
28 }
29
30
31 public DoubleResult(S firstResult, T secondResult) {
32 super();
33 this.firstResult = firstResult;
34 this.secondResult = secondResult;
35 }
36
37 /**
38 * @return the firstResult
39 */
40 public S getFirstResult() {
41 return firstResult;
42 }
43
44 /**
45 * @param firstResult the firstResult to set
46 */
47 public void setFirstResult(S firstResult) {
48 this.firstResult = firstResult;
49 }
50
51 /**
52 * @return the secondResult
53 */
54 public T getSecondResult() {
55 return secondResult;
56 }
57
58 /**
59 * @param secondResult the secondResult to set
60 */
61 public void setSecondResult(T secondResult) {
62 this.secondResult = secondResult;
63 }
64
65 }