All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.solovyev.common.definitions.Pair Maven / Gradle / Ivy

package org.solovyev.common.definitions;

import org.jetbrains.annotations.NotNull;

/**
 * User: serso
 * Date: Oct 24, 2009
 * Time: 12:35:34 AM
 */
public class Pair {

    private K first;
    private V second;

    public Pair(K first, V second) {
        this.first = first;
        this.second = second;
    }

    public V getSecond() {
        return second;
    }

    public void setSecond(V second) {
        this.second = second;
    }

    public K getFirst() {
        return first;
    }

    public void setFirst(K first) {
        this.first = first;
    }

	@NotNull
	public static  Pair create(F first, S second) {
		return new Pair(first, second);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy