1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2007 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
|
11
|
package eu.etaxonomy.cdm.common;
|
12
|
|
13
|
import org.apache.log4j.Logger;
|
14
|
|
15
|
/**
|
16
|
* An instance of this class represents an method result that contains 2 variables. The variables may be typified.
|
17
|
* @author a.mueller
|
18
|
* @created 30.10.2008
|
19
|
* @version 1.0
|
20
|
*/
|
21
|
public class DoubleResult<S extends Object, T extends Object> {
|
22
|
private static final Logger logger = Logger.getLogger(DoubleResult.class);
|
23
|
|
24
|
private S firstResult = null;
|
25
|
private T secondResult = null;
|
26
|
|
27
|
public DoubleResult() {
|
28
|
if (logger.isDebugEnabled()){logger.debug("Constructor");}
|
29
|
}
|
30
|
|
31
|
|
32
|
public DoubleResult(S firstResult, T secondResult) {
|
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
|
}
|