001 /* 002 * Created on Jul 29, 2008 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except 005 * in compliance with the License. You may obtain a copy of the License at 006 * 007 * http://www.apache.org/licenses/LICENSE-2.0 008 * 009 * Unless required by applicable law or agreed to in writing, software distributed under the License 010 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 011 * or implied. See the License for the specific language governing permissions and limitations under 012 * the License. 013 * 014 * Copyright @2008-2010 the original author or authors. 015 */ 016 package org.fest.swing.util; 017 018 019 /** 020 * Understands a tuple of size 2. 021 * @param <I> the generic type of the 1st. value in this tuple. 022 * @param <II> the generic type of the 2nd. value in this tuple. 023 * 024 * @author Yvonne Wang 025 * @author Alex Ruiz 026 */ 027 public class Pair<I, II> { 028 029 /** The first value in this tuple. */ 030 public final I i; 031 032 /** The second value in this tuple. */ 033 public final II ii; 034 035 /** 036 * Creates a new </code>{@link Pair}</code>. 037 * @param i the 1st. value in this tuple. 038 * @param ii the 2nd. value in this tuple. 039 */ 040 public Pair(I i, II ii) { 041 this.i = i; 042 this.ii = ii; 043 } 044 }