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

com.github.rahulsom.grooves.queries.internal.Pair Maven / Gradle / Ivy

package com.github.rahulsom.grooves.queries.internal;

import org.jetbrains.annotations.NotNull;

/**
 * Immutable class that can store two objects.
 *
 * @param   Type of first object
 * @param  Type of second object
 *
 * @author Rahul Somasunderam
 */
public class Pair {
    private final FirstT first;
    private final SecondT second;

    public Pair(@NotNull FirstT first, @NotNull SecondT second) {
        this.first = first;
        this.second = second;
    }

    @NotNull public FirstT getFirst() {
        return first;
    }

    @NotNull public SecondT getSecond() {
        return second;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy