Project

General

Profile

Download (1.27 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
package eu.etaxonomy.cdm.common;
10

    
11
import org.apache.logging.log4j.LogManager;
12
import org.apache.logging.log4j.Logger;
13

    
14
/**
15
 * An instance of this class represents an method result that contains 2 variables. The variables may be typified.
16
 *
17
 * @author a.mueller
18
 * @since 30.10.2008
19
 */
20
public class DoubleResult<S extends Object, T extends Object> {
21

    
22
	private static final Logger logger = LogManager.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
	public DoubleResult(S firstResult, T secondResult) {
32
		this.firstResult = firstResult;
33
		this.secondResult = secondResult;
34
	}
35

    
36
	public S getFirstResult() {
37
		return firstResult;
38
	}
39
	public void setFirstResult(S firstResult) {
40
		this.firstResult = firstResult;
41
	}
42

    
43
	public T getSecondResult() {
44
		return secondResult;
45
	}
46
	public void setSecondResult(T secondResult) {
47
		this.secondResult = secondResult;
48
	}
49
}
(7-7/25)