-/**\r
-* Copyright (C) 2007 EDIT\r
-* European Distributed Institute of Taxonomy \r
-* http://www.e-taxonomy.eu\r
-* \r
-* The contents of this file are subject to the Mozilla Public License Version 1.1\r
-* See LICENSE.TXT at the top of this package for the full license terms.\r
-*/\r
-\r
-package eu.etaxonomy.cdm.common;\r
-\r
-import org.apache.log4j.Logger;\r
-\r
-/**\r
- * An instance of this class represents an method result that contains 2 variables. The variables may be typified.\r
- * @author a.mueller\r
- * @created 30.10.2008\r
- * @version 1.0\r
- */\r
-public class DoubleResult<S extends Object, T extends Object> {\r
- private static final Logger logger = Logger.getLogger(DoubleResult.class);\r
- \r
- private S firstResult = null;\r
- private T secondResult = null;\r
- \r
- public DoubleResult() {\r
- if (logger.isDebugEnabled()){logger.debug("Constructor");}\r
- }\r
-\r
- \r
- public DoubleResult(S firstResult, T secondResult) {\r
- this.firstResult = firstResult;\r
- this.secondResult = secondResult;\r
- }\r
-\r
- /**\r
- * @return the firstResult\r
- */\r
- public S getFirstResult() {\r
- return firstResult;\r
- }\r
-\r
- /**\r
- * @param firstResult the firstResult to set\r
- */\r
- public void setFirstResult(S firstResult) {\r
- this.firstResult = firstResult;\r
- }\r
-\r
- /**\r
- * @return the secondResult\r
- */\r
- public T getSecondResult() {\r
- return secondResult;\r
- }\r
-\r
- /**\r
- * @param secondResult the secondResult to set\r
- */\r
- public void setSecondResult(T secondResult) {\r
- this.secondResult = secondResult;\r
- }\r
- \r
-}\r
+/**
+* Copyright (C) 2007 EDIT
+* European Distributed Institute of Taxonomy
+* http://www.e-taxonomy.eu
+*
+* The contents of this file are subject to the Mozilla Public License Version 1.1
+* See LICENSE.TXT at the top of this package for the full license terms.
+*/
+package eu.etaxonomy.cdm.common;
+
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
+
+/**
+ * An instance of this class represents an method result that contains 2 variables. The variables may be typified.
+ *
+ * @author a.mueller
+ * @since 30.10.2008
+ */
+public class DoubleResult<S extends Object, T extends Object> {
+
+ private static final Logger logger = LogManager.getLogger();
+
+ private S firstResult = null;
+ private T secondResult = null;
+
+ public DoubleResult() {
+ if (logger.isDebugEnabled()){logger.debug("Constructor");}
+ }
+
+ public DoubleResult(S firstResult, T secondResult) {
+ this.firstResult = firstResult;
+ this.secondResult = secondResult;
+ }
+
+ public S getFirstResult() {
+ return firstResult;
+ }
+ public void setFirstResult(S firstResult) {
+ this.firstResult = firstResult;
+ }
+
+ public T getSecondResult() {
+ return secondResult;
+ }
+ public void setSecondResult(T secondResult) {
+ this.secondResult = secondResult;
+ }
+
+ @Override
+ public String toString() {
+ return "["+
+ firstResult+";"+secondResult+
+ "]";
+ }
+}
\ No newline at end of file