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

io.github.filipowm.api.utils.Pair Maven / Gradle / Ivy

package io.github.filipowm.api.utils;

import lombok.RequiredArgsConstructor;

/**
 * Simple implementation of two-value tuple/pair object.
 */
@RequiredArgsConstructor(staticName = "of")
public class Pair {

    private final T one;
    private final U two;

    /**
     * @return value of first object passed to constructor
     */
    public T getOne() {
        return one;
    }

    /**
     * @return value of second object passed to constructor
     */
    public U getTwo() {
        return two;
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy