@@ -0,0 +1,1431 @@
+/****************************************************************************%0A * Copyright (C) 2012 ecsec GmbH.%0A * All rights reserved.%0A * Contact: ecsec GmbH (info@ecsec.de)%0A *%0A * This file is part of the Open eCard App.%0A *%0A * GNU General Public License Usage%0A * This file may be used under the terms of the GNU General Public%0A * License version 3.0 as published by the Free Software Foundation%0A * and appearing in the file LICENSE.GPL included in the packaging of%0A * this file. Please review the following information to ensure the%0A * GNU General Public License version 3.0 requirements will be met:%0A * http://www.gnu.org/copyleft/gpl.html.%0A *%0A * Other Usage%0A * Alternatively, this file may be used in accordance with the terms%0A * and conditions contained in a signed written agreement between%0A * you and ecsec GmbH.%0A *%0A ***************************************************************************/%0A%0Apackage org.openecard.common.util;%0A%0A%0A/**%0A * Generic pair class.%0A * Handy when a function return has two values and the list interface is counter intuitive.%0A *%0A * @author Tobias Wich %3Ctobias.wich@ecsec.de%3E%0A */%0Apublic class Pair%3CT1,T2%3E %7B%0A%0A    public final T1 e1;%0A    public final T2 e2;%0A%0A    /**%0A     * Create a pair initialized with the two given values.%0A     *%0A     * @param e1 Value of the first element%0A     * @param e2 Value of the second element.%0A     */%0A    public Pair(T1 e1, T2 e2) %7B%0A%09this.e1 = e1;%0A%09this.e2 = e2;%0A    %7D%0A%0A%7D%0A

Create Pair class for use as a typed tuple return