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
|
package eu.etaxonomy.cdm.common;
|
10
|
|
11
|
import org.apache.log4j.Logger;
|
12
|
|
13
|
/**
|
14
|
* An instance of this class represents an method result that contains 2 variables. The variables may be typified.
|
15
|
*
|
16
|
* @author a.mueller
|
17
|
* @since 30.10.2008
|
18
|
*/
|
19
|
public class DoubleResult<S extends Object, T extends Object> {
|
20
|
private static final Logger logger = Logger.getLogger(DoubleResult.class);
|
21
|
|
22
|
private S firstResult = null;
|
23
|
private T secondResult = null;
|
24
|
|
25
|
public DoubleResult() {
|
26
|
if (logger.isDebugEnabled()){logger.debug("Constructor");}
|
27
|
}
|
28
|
|
29
|
|
30
|
public DoubleResult(S firstResult, T secondResult) {
|
31
|
this.firstResult = firstResult;
|
32
|
this.secondResult = secondResult;
|
33
|
}
|
34
|
|
35
|
public S getFirstResult() {
|
36
|
return firstResult;
|
37
|
}
|
38
|
public void setFirstResult(S firstResult) {
|
39
|
this.firstResult = firstResult;
|
40
|
}
|
41
|
|
42
|
public T getSecondResult() {
|
43
|
return secondResult;
|
44
|
}
|
45
|
public void setSecondResult(T secondResult) {
|
46
|
this.secondResult = secondResult;
|
47
|
}
|
48
|
}
|