2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
9 package eu
.etaxonomy
.cdm
.common
;
11 import org
.apache
.logging
.log4j
.LogManager
;
12 import org
.apache
.logging
.log4j
.Logger
;
15 * An instance of this class represents an method result that contains 2 variables. The variables may be typified.
20 public class DoubleResult
<S
extends Object
, T
extends Object
> {
22 private static final Logger logger
= LogManager
.getLogger();
24 private S firstResult
= null;
25 private T secondResult
= null;
27 public DoubleResult() {
28 if (logger
.isDebugEnabled()){logger
.debug("Constructor");}
31 public DoubleResult(S firstResult
, T secondResult
) {
32 this.firstResult
= firstResult
;
33 this.secondResult
= secondResult
;
36 public S
getFirstResult() {
39 public void setFirstResult(S firstResult
) {
40 this.firstResult
= firstResult
;
43 public T
getSecondResult() {
46 public void setSecondResult(T secondResult
) {
47 this.secondResult
= secondResult
;
51 public String
toString() {
53 firstResult
+";"+secondResult
+