Project

General

Profile

Download (1.45 KB) Statistics
| Branch: | Tag: | Revision:
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
 * @since 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
		if (logger.isDebugEnabled()){logger.debug("Constructor");}
28
	}
29

    
30
	
31
	public DoubleResult(S firstResult, T secondResult) {
32
		this.firstResult = firstResult;
33
		this.secondResult = secondResult;
34
	}
35

    
36
	/**
37
	 * @return the firstResult
38
	 */
39
	public S getFirstResult() {
40
		return firstResult;
41
	}
42

    
43
	/**
44
	 * @param firstResult the firstResult to set
45
	 */
46
	public void setFirstResult(S firstResult) {
47
		this.firstResult = firstResult;
48
	}
49

    
50
	/**
51
	 * @return the secondResult
52
	 */
53
	public T getSecondResult() {
54
		return secondResult;
55
	}
56

    
57
	/**
58
	 * @param secondResult the secondResult to set
59
	 */
60
	public void setSecondResult(T secondResult) {
61
		this.secondResult = secondResult;
62
	}
63
	
64
}
(7-7/23)